mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Runtime] Stub out the same-conformance requirement check.
The compiler doesn't generate these yet, and we don't really have a good way to use or test them. For now, ignore them.
This commit is contained in:
@@ -776,15 +776,21 @@ bool swift::_checkGenericRequirements(
|
||||
_getTypeByMangledName(req.getMangledTypeName(), substGenericParam);
|
||||
if (!baseType) return true;
|
||||
|
||||
// Check whether it's dynamically castable, which works as a superclass
|
||||
// check.
|
||||
if (!swift_dynamicCastMetatype(subjectType, baseType)) return true;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
// FIXME: Handle all of the other cases.
|
||||
default:
|
||||
return true;
|
||||
case GenericRequirementKind::SameConformance: {
|
||||
// FIXME: Implement this check.
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// Unknown generic requirement kind.
|
||||
return true;
|
||||
}
|
||||
|
||||
// Success!
|
||||
|
||||
Reference in New Issue
Block a user