mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 10:29:18 -05:00
Adjust baselines after merge
This commit is contained in:
13
tests/baselines/reference/ES5For-of17.errors.txt
Normal file
13
tests/baselines/reference/ES5For-of17.errors.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts(3,20): error TS2448: Block-scoped variable 'v' used before its declaration.
|
||||
|
||||
|
||||
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts (1 errors) ====
|
||||
for (let v of []) {
|
||||
v;
|
||||
for (let v of [v]) {
|
||||
~
|
||||
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
|
||||
var x = v;
|
||||
v++;
|
||||
}
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
=== tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts ===
|
||||
for (let v of []) {
|
||||
>v : any
|
||||
>[] : undefined[]
|
||||
|
||||
v;
|
||||
>v : any
|
||||
|
||||
for (let v of [v]) {
|
||||
>v : any
|
||||
>[v] : any[]
|
||||
>v : any
|
||||
|
||||
var x = v;
|
||||
>x : any
|
||||
>v : any
|
||||
|
||||
v++;
|
||||
>v++ : number
|
||||
>v : any
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,13 @@
|
||||
tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts(3,20): error TS2448: Block-scoped variable 'v' used before its declaration.
|
||||
tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts(4,15): error TS1155: 'const' declarations must be initialized
|
||||
|
||||
|
||||
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts (1 errors) ====
|
||||
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts (2 errors) ====
|
||||
for (let v of []) {
|
||||
let v;
|
||||
for (let v of [v]) {
|
||||
~
|
||||
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
|
||||
const v;
|
||||
~
|
||||
!!! error TS1155: 'const' declarations must be initialized
|
||||
|
||||
Reference in New Issue
Block a user