f1a2e41a8a
This was we don't get noisy baselines just because a different phase of the compiler reported the diagnostic. This helps with Yui's refactoring work to move grammar checks into the type checker.
30 lines
No EOL
1.3 KiB
Text
30 lines
No EOL
1.3 KiB
Text
tests/cases/compiler/letAsIdentifierInStrictMode.ts(2,5): error TS1134: Variable declaration expected.
|
|
tests/cases/compiler/letAsIdentifierInStrictMode.ts(2,9): error TS1134: Variable declaration expected.
|
|
tests/cases/compiler/letAsIdentifierInStrictMode.ts(2,11): error TS1134: Variable declaration expected.
|
|
tests/cases/compiler/letAsIdentifierInStrictMode.ts(3,5): error TS2300: Duplicate identifier 'a'.
|
|
tests/cases/compiler/letAsIdentifierInStrictMode.ts(4,5): error TS1134: Variable declaration expected.
|
|
tests/cases/compiler/letAsIdentifierInStrictMode.ts(4,7): error TS1134: Variable declaration expected.
|
|
tests/cases/compiler/letAsIdentifierInStrictMode.ts(6,1): error TS2300: Duplicate identifier 'a'.
|
|
|
|
|
|
==== tests/cases/compiler/letAsIdentifierInStrictMode.ts (7 errors) ====
|
|
"use strict";
|
|
var let = 10;
|
|
~~~
|
|
!!! error TS1134: Variable declaration expected.
|
|
~
|
|
!!! error TS1134: Variable declaration expected.
|
|
~~
|
|
!!! error TS1134: Variable declaration expected.
|
|
var a = 10;
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'a'.
|
|
let = 30;
|
|
~
|
|
!!! error TS1134: Variable declaration expected.
|
|
~~
|
|
!!! error TS1134: Variable declaration expected.
|
|
let
|
|
a;
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'a'. |