mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CS] Replace UnresolvedType with ErrorType in simplifyType/resolveType
This means we now either produce a bare ErrorType, or an ErrorType with a generic parameter original type for a generic parameter hole. We ought to further consolidate this logic by sinking the generic parameter original type replacement into `simplifyType` itself, but I'm leaving that for a future patch since it affects completion results and I want to try keep this close to NFC.
This commit is contained in:
@@ -123,7 +123,7 @@ void ConformingMethodListCallbacks::readyForTypeChecking(SourceFile *SrcFile) {
|
||||
Type T = Res.Ty;
|
||||
WithSolutionSpecificVarTypesRAII VarType(Res.SolutionSpecificVarTypes);
|
||||
|
||||
if (!T || T->is<ErrorType>() || T->is<UnresolvedType>())
|
||||
if (!T || T->is<ErrorType>())
|
||||
return;
|
||||
|
||||
T = T->getRValueType();
|
||||
|
||||
Reference in New Issue
Block a user