Fixed issues with inference from nested tuple types of the same shape (#49226)

This commit is contained in:
Mateusz Burzyński
2023-03-20 19:18:08 +01:00
committed by GitHub
parent 9e1f0adf61
commit 3fab5fff34
4 changed files with 209 additions and 2 deletions

View File

@@ -22888,8 +22888,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
return type.symbol;
}
if (isTupleType(type)) {
// Tuple types are tracked through their target type
return type.target;
return type;
}
}
if (type.flags & TypeFlags.TypeParameter) {