mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Teach resolveKnownTypeWitness() about ExpressibleByArrayLiteral.ArrayLiteralElement
This commit is contained in:
@@ -427,6 +427,12 @@ static bool resolveKnownTypeWitness(NormalProtocolConformance *conformance,
|
||||
return resolveViaLookup();
|
||||
}
|
||||
|
||||
// ExpressibleByArrayLiteral.ArrayLiteralElement
|
||||
if (*knownKind == KnownProtocolKind::ExpressibleByArrayLiteral) {
|
||||
assert(assocType->getName() == ctx.getIdentifier("ArrayLiteralElement"));
|
||||
return resolveViaLookup();
|
||||
}
|
||||
|
||||
// _ObjectiveCBridgeable._ObjectiveCType
|
||||
if (*knownKind == KnownProtocolKind::ObjectiveCBridgeable) {
|
||||
assert(assocType->getName() == ctx.Id_ObjectiveCType);
|
||||
|
||||
Reference in New Issue
Block a user