[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:
Hamish Knight
2025-10-01 22:30:46 +01:00
parent 21141f466c
commit 5171b84dba
11 changed files with 36 additions and 34 deletions

View File

@@ -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();