mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fixed issues with inference from nested tuple types of the same shape (#49226)
This commit is contained in:
1 parent
9e1f0adf61
commit
3fab5fff34
4 files changed
+209
-2
No files matched your search
@@ -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