mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Eagerly reduce empty intersections to 'never'
This commit is contained in:
parent
8705844879
commit
aab3004482
@ -9956,6 +9956,9 @@ namespace ts {
|
||||
}
|
||||
else {
|
||||
result = createIntersectionType(typeSet, aliasSymbol, aliasTypeArguments);
|
||||
if (isEmptyIntersectionType(<IntersectionType>result)) {
|
||||
result = neverType;
|
||||
}
|
||||
}
|
||||
intersectionTypes.set(id, result);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user