Added missing error for an illegal unpacked argument in type argument list.

(cherry picked from commit 7a9165b716)
This commit is contained in:
Eric Traut 2024-01-06 18:09:51 -07:00
parent 1f74459b6a
commit ba06108bcb

View File

@ -7537,6 +7537,8 @@ export function createTypeEvaluator(importLookup: ImportLookup, evaluatorOptions
isTupleClass(typeResult.type)
) {
typeResult.type = ClassType.cloneForUnpacked(typeResult.type);
} else {
addError(Localizer.Diagnostic.unpackNotAllowed(), arg.valueExpression);
}
}
}