Merge pull request #27669 from Microsoft/betterErrorForAccidentalCall

Always emit diagnostic when a call expression can be fixed by adding a semicolon
This commit is contained in:
Daniel Rosenwasser
2018-11-12 14:50:23 -08:00
committed by GitHub
8 changed files with 86 additions and 85 deletions

View File

@@ -7,8 +7,8 @@ foo() (1 as number).toString();
foo()
(1 as number).toString();
foo()
(1 as number).toString();
foo()
(1 + 2).toString();
foo()
foo()
(<number>1).toString();