mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Unwrap substitutions on conditional check types before comparing them (#43888)
This commit is contained in:
1 parent
84da19efc8
commit
b83148fe64
5 files changed
+33
-1
No files matched your search
@@ -15022,7 +15022,7 @@ namespace ts {
|
||||
// purposes of resolution. This means such types aren't subject to the instatiation depth limiter.
|
||||
while (true) {
|
||||
const isUnwrapped = isTypicalNondistributiveConditional(root);
|
||||
const checkType = instantiateType(unwrapNondistributiveConditionalTuple(root, root.checkType), mapper);
|
||||
const checkType = instantiateType(unwrapNondistributiveConditionalTuple(root, getActualTypeVariable(root.checkType)), mapper);
|
||||
const checkTypeInstantiable = isGenericObjectType(checkType) || isGenericIndexType(checkType);
|
||||
const extendsType = instantiateType(unwrapNondistributiveConditionalTuple(root, root.extendsType), mapper);
|
||||
if (checkType === wildcardType || extendsType === wildcardType) {
|
||||
|
||||
Reference in new issue
Block a user