mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 22:51:17 -05:00
Add assertion on invalid cache set (#43845)
This commit is contained in:
@@ -32190,6 +32190,9 @@ namespace ts {
|
||||
assignBindingElementTypes(declaration.name, links.type);
|
||||
}
|
||||
}
|
||||
else if (type) {
|
||||
Debug.assertEqual(links.type, type, "Parameter symbol already has a cached type which differs from newly assigned type");
|
||||
}
|
||||
}
|
||||
|
||||
// When contextual typing assigns a type to a parameter that contains a binding pattern, we also need to push
|
||||
|
||||
Reference in New Issue
Block a user