mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fixed syntactic nullisness semantics for comma expressions (#60402)
This commit is contained in:
1 parent
0ec4d30a6e
commit
c09e2ab4ff
6 files changed
+152
-5
No files matched your search
@@ -39772,6 +39772,8 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
case SyntaxKind.AmpersandAmpersandToken:
|
||||
case SyntaxKind.AmpersandAmpersandEqualsToken:
|
||||
return PredicateSemantics.Sometimes;
|
||||
case SyntaxKind.CommaToken:
|
||||
return getSyntacticNullishnessSemantics((node as BinaryExpression).right);
|
||||
}
|
||||
return PredicateSemantics.Never;
|
||||
case SyntaxKind.ConditionalExpression:
|
||||
|
||||
Reference in new issue
Block a user