|
| 1 | +//// [tests/cases/conformance/parser/ecmascript5/Statements/parserForInStatement8.ts] //// |
| 2 | + |
| 3 | +=== parserForInStatement8.ts === |
| 4 | +// repro from https://github.com/microsoft/TypeScript/issues/54769 |
| 5 | + |
| 6 | +for (let [x = 'a' in {}] in { '': 0 }) console.log(x) |
| 7 | +>x : Symbol(x, Decl(parserForInStatement8.ts, 2, 10)) |
| 8 | +>'' : Symbol('', Decl(parserForInStatement8.ts, 2, 29)) |
| 9 | +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 10 | +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) |
| 11 | +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 12 | +>x : Symbol(x, Decl(parserForInStatement8.ts, 2, 10)) |
| 13 | + |
| 14 | +for (let {x = 'a' in {}} in { '': 0 }) console.log(x) |
| 15 | +>x : Symbol(x, Decl(parserForInStatement8.ts, 3, 10)) |
| 16 | +>'' : Symbol('', Decl(parserForInStatement8.ts, 3, 29)) |
| 17 | +>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 18 | +>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) |
| 19 | +>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) |
| 20 | +>x : Symbol(x, Decl(parserForInStatement8.ts, 3, 10)) |
| 21 | + |
0 commit comments