We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 033864b commit 794e0ceCopy full SHA for 794e0ce
1 file changed
src/compiler/factory.ts
@@ -1336,9 +1336,9 @@ namespace ts {
1336
// NumericLiteral
1337
// 1.x -> not the same as (1).x
1338
//
1339
- if (isLeftHandSideExpression(expression) &&
1340
- expression.kind !== SyntaxKind.NewExpression &&
1341
- expression.kind !== SyntaxKind.NumericLiteral) {
+ if (isLeftHandSideExpression(expression)
+ && (expression.kind !== SyntaxKind.NewExpression || (<NewExpression>expression).arguments)
+ && expression.kind !== SyntaxKind.NumericLiteral) {
1342
return <LeftHandSideExpression>expression;
1343
}
1344
0 commit comments