mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-31 08:07:10 -05:00
Fixed issues with inference from nested tuple types of the same shape (#49226)
This commit is contained in:
committed by
GitHub
parent
9e1f0adf61
commit
3fab5fff34
@@ -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