AST: Teach resolveKnownTypeWitness() about ExpressibleByArrayLiteral.ArrayLiteralElement

This commit is contained in:
Slava Pestov
2017-09-11 21:18:57 -07:00
parent fec25a5de8
commit 091da16929

View File

@@ -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);