|
| 1 | +=== tests/cases/conformance/enums/enumConstantMemberWithStringDeclaration.ts === |
| 2 | +enum T1 { |
| 3 | +>T1 : Symbol(T1, Decl(enumConstantMemberWithStringDeclaration.ts, 0, 0)) |
| 4 | + |
| 5 | + a = "1", |
| 6 | +>a : Symbol(T1.a, Decl(enumConstantMemberWithStringDeclaration.ts, 0, 9)) |
| 7 | + |
| 8 | + b = "1" + "2", |
| 9 | +>b : Symbol(T1.b, Decl(enumConstantMemberWithStringDeclaration.ts, 1, 12)) |
| 10 | + |
| 11 | + c = "1" + "2" + "3" |
| 12 | +>c : Symbol(T1.c, Decl(enumConstantMemberWithStringDeclaration.ts, 2, 18)) |
| 13 | +} |
| 14 | + |
| 15 | +enum T2 { |
| 16 | +>T2 : Symbol(T2, Decl(enumConstantMemberWithStringDeclaration.ts, 4, 1)) |
| 17 | + |
| 18 | + a = "1", |
| 19 | +>a : Symbol(T2.a, Decl(enumConstantMemberWithStringDeclaration.ts, 6, 9)) |
| 20 | + |
| 21 | + b = "1" + "2" |
| 22 | +>b : Symbol(T2.b, Decl(enumConstantMemberWithStringDeclaration.ts, 7, 12)) |
| 23 | +} |
| 24 | + |
| 25 | +enum T3 { |
| 26 | +>T3 : Symbol(T3, Decl(enumConstantMemberWithStringDeclaration.ts, 9, 1)) |
| 27 | + |
| 28 | + a = "1", |
| 29 | +>a : Symbol(T3.a, Decl(enumConstantMemberWithStringDeclaration.ts, 11, 9)) |
| 30 | + |
| 31 | + b = "1" + "2", |
| 32 | +>b : Symbol(T3.b, Decl(enumConstantMemberWithStringDeclaration.ts, 12, 12)) |
| 33 | + |
| 34 | + c = 1 |
| 35 | +>c : Symbol(T3.c, Decl(enumConstantMemberWithStringDeclaration.ts, 13, 18)) |
| 36 | +} |
| 37 | + |
| 38 | +enum T4 { |
| 39 | +>T4 : Symbol(T4, Decl(enumConstantMemberWithStringDeclaration.ts, 15, 1)) |
| 40 | + |
| 41 | + a = "1" |
| 42 | +>a : Symbol(T4.a, Decl(enumConstantMemberWithStringDeclaration.ts, 17, 9)) |
| 43 | +} |
| 44 | + |
| 45 | +enum T5 { |
| 46 | +>T5 : Symbol(T5, Decl(enumConstantMemberWithStringDeclaration.ts, 19, 1)) |
| 47 | + |
| 48 | + a = "1" + "2" |
| 49 | +>a : Symbol(T5.a, Decl(enumConstantMemberWithStringDeclaration.ts, 21, 9)) |
| 50 | +} |
| 51 | + |
| 52 | +declare enum T6 { |
| 53 | +>T6 : Symbol(T6, Decl(enumConstantMemberWithStringDeclaration.ts, 23, 1)) |
| 54 | + |
| 55 | + a = "1", |
| 56 | +>a : Symbol(T6.a, Decl(enumConstantMemberWithStringDeclaration.ts, 25, 17)) |
| 57 | + |
| 58 | + b = "1" + "2" |
| 59 | +>b : Symbol(T6.b, Decl(enumConstantMemberWithStringDeclaration.ts, 26, 12)) |
| 60 | +} |
| 61 | + |
0 commit comments