|
| 1 | +//// [tests/cases/compiler/computedEnumMemberKeyNoCrash1.ts] //// |
| 2 | + |
| 3 | +=== computedEnumMemberKeyNoCrash1.ts === |
| 4 | +// https://github.com/microsoft/TypeScript/issues/63173 |
| 5 | + |
| 6 | +declare const enum E { |
| 7 | +>E : Symbol(E, Decl(computedEnumMemberKeyNoCrash1.ts, 0, 0)) |
| 8 | + |
| 9 | + [foo] = 1, |
| 10 | +>[foo] : Symbol(E[foo], Decl(computedEnumMemberKeyNoCrash1.ts, 2, 22)) |
| 11 | +>foo : Symbol(E.foo, Decl(computedEnumMemberKeyNoCrash1.ts, 4, 6)) |
| 12 | + |
| 13 | + A, |
| 14 | +>A : Symbol(E.A, Decl(computedEnumMemberKeyNoCrash1.ts, 3, 14)) |
| 15 | + |
| 16 | + foo = 10, |
| 17 | +>foo : Symbol(E.foo, Decl(computedEnumMemberKeyNoCrash1.ts, 4, 6)) |
| 18 | +} |
| 19 | +E.A.toString(); |
| 20 | +>E.A.toString : Symbol(Number.toString, Decl(lib.es5.d.ts, --, --)) |
| 21 | +>E.A : Symbol(E.A, Decl(computedEnumMemberKeyNoCrash1.ts, 3, 14)) |
| 22 | +>E : Symbol(E, Decl(computedEnumMemberKeyNoCrash1.ts, 0, 0)) |
| 23 | +>A : Symbol(E.A, Decl(computedEnumMemberKeyNoCrash1.ts, 3, 14)) |
| 24 | +>toString : Symbol(Number.toString, Decl(lib.es5.d.ts, --, --)) |
| 25 | + |
0 commit comments