mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixed issues with inference from nested tuple types of the same shape (#49226)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user