mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Allow type checking qualified references to generic nominals with free type
variables This change allows the type checker to create member references to generic nominals with free type variables -- see tests. This is important for code completion, for example, swift.Dictionary.#^A^# Fixes rdar://15980316 Swift SVN r14461
This commit is contained in:
@@ -915,6 +915,7 @@ Optional<ConformanceEntry> ASTContext::getConformsTo(CanType type,
|
||||
|
||||
void ASTContext::setConformsTo(CanType type, ProtocolDecl *proto,
|
||||
ConformanceEntry entry) {
|
||||
assert(!type->is<GenericTypeParamType>());
|
||||
auto arena = getArena(type->getRecursiveProperties());
|
||||
auto &conformsTo = Impl.getArena(arena).ConformsTo;
|
||||
conformsTo[{type, proto}] = entry;
|
||||
|
||||
Reference in New Issue
Block a user