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.
14 lines
No EOL
958 B
Text
14 lines
No EOL
958 B
Text
tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement7.ts(1,10): error TS2404: The left-hand side of a 'for...in' statement cannot use a type annotation.
|
|
tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement7.ts(1,25): error TS1091: Only a single variable declaration is allowed in a 'for...in' statement.
|
|
tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement7.ts(1,43): error TS2304: Cannot find name 'X'.
|
|
|
|
|
|
==== tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement7.ts (3 errors) ====
|
|
for (var a: number = 1, b: string = "" in X) {
|
|
~
|
|
!!! error TS2404: The left-hand side of a 'for...in' statement cannot use a type annotation.
|
|
~
|
|
!!! error TS1091: Only a single variable declaration is allowed in a 'for...in' statement.
|
|
~
|
|
!!! error TS2304: Cannot find name 'X'.
|
|
} |