mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Remove DeclContext::mapTypeOutOfContext()
This commit is contained in:
@@ -717,7 +717,7 @@ Type TypeChecker::getUnopenedTypeOfReference(VarDecl *value, Type baseType,
|
||||
if (!wantInterfaceType && requestedType->hasArchetype()) {
|
||||
auto valueDC = value->getDeclContext();
|
||||
if (valueDC != UseDC) {
|
||||
Type mapped = valueDC->mapTypeOutOfContext(requestedType);
|
||||
Type mapped = requestedType->mapTypeOutOfContext();
|
||||
requestedType = UseDC->mapTypeIntoContext(mapped);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user