mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Generalize GenericSignatureImpl::getUpperBound()
Handle inverses, and add a couple of flags (yuck!) to allow its usage in diagnostics and code completion.
This commit is contained in:
@@ -2343,7 +2343,7 @@ static Type typeEraseExistentialSelfReferences(Type refTy, Type baseTy,
|
||||
if (paramTy->is<GenericTypeParamType>()) {
|
||||
erasedTy = baseTy;
|
||||
} else {
|
||||
erasedTy = existentialSig->getUpperBound(paramTy);
|
||||
erasedTy = existentialSig->getExistentialType(paramTy);
|
||||
}
|
||||
|
||||
if (metatypeDepth) {
|
||||
|
||||
Reference in New Issue
Block a user