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