TypeScript/tests/baselines/reference/computedPropertyNames47_ES5.types

25 lines
984 B
Plaintext
Raw Normal View History

=== tests/cases/conformance/es6/computedProperties/computedPropertyNames47_ES5.ts ===
enum E1 { x }
2015-04-13 23:01:57 +02:00
>E1 : E1, Symbol(E1, Decl(computedPropertyNames47_ES5.ts, 0, 0))
>x : E1, Symbol(E1.x, Decl(computedPropertyNames47_ES5.ts, 0, 9))
enum E2 { x }
2015-04-13 23:01:57 +02:00
>E2 : E2, Symbol(E2, Decl(computedPropertyNames47_ES5.ts, 0, 13))
>x : E2, Symbol(E2.x, Decl(computedPropertyNames47_ES5.ts, 1, 9))
var o = {
2015-04-13 23:01:57 +02:00
>o : {}, Symbol(o, Decl(computedPropertyNames47_ES5.ts, 2, 3))
>{ [E1.x || E2.x]: 0} : {}
[E1.x || E2.x]: 0
>E1.x || E2.x : E1 | E2
2015-04-13 23:01:57 +02:00
>E1.x : E1, Symbol(E1.x, Decl(computedPropertyNames47_ES5.ts, 0, 9))
>E1 : typeof E1, Symbol(E1, Decl(computedPropertyNames47_ES5.ts, 0, 0))
>x : E1, Symbol(E1.x, Decl(computedPropertyNames47_ES5.ts, 0, 9))
>E2.x : E2, Symbol(E2.x, Decl(computedPropertyNames47_ES5.ts, 1, 9))
>E2 : typeof E2, Symbol(E2, Decl(computedPropertyNames47_ES5.ts, 0, 13))
>x : E2, Symbol(E2.x, Decl(computedPropertyNames47_ES5.ts, 1, 9))
2015-04-13 21:36:11 +02:00
>0 : number
};