mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #25291 from xedin/refactor-open-generic
[ConstraintSystem] Refactor openGeneric/openFunctionType
This commit is contained in:
@@ -4885,10 +4885,8 @@ ConstraintSystem::simplifyOpaqueUnderlyingTypeConstraint(Type type1, Type type2,
|
||||
// corresponding to the underlying type should be the constraints on the
|
||||
// underlying return type.
|
||||
OpenedTypeMap replacements;
|
||||
openGeneric(nullptr, DC, opaque2->getBoundSignature(),
|
||||
/*skip self*/ false,
|
||||
locator, replacements);
|
||||
|
||||
openGeneric(DC, opaque2->getBoundSignature(), locator, replacements);
|
||||
|
||||
auto underlyingTyVar = openType(opaque2->getInterfaceType(),
|
||||
replacements);
|
||||
assert(underlyingTyVar);
|
||||
|
||||
Reference in New Issue
Block a user