2015-08-22 04:17:09 +02:00
|
|
|
// @removeComments: true
|
2015-08-05 09:02:29 +02:00
|
|
|
const enum Foo {
|
|
|
|
X = 100,
|
|
|
|
Y = 0.5,
|
2015-08-05 19:36:47 +02:00
|
|
|
Z = 2.,
|
|
|
|
A = -1,
|
|
|
|
B = -1.5,
|
|
|
|
C = -1.
|
2015-08-05 09:02:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
let x0 = Foo.X.toString();
|
|
|
|
let x1 = Foo["X"].toString();
|
|
|
|
let y0 = Foo.Y.toString();
|
|
|
|
let y1 = Foo["Y"].toString();
|
|
|
|
let z0 = Foo.Z.toString();
|
|
|
|
let z1 = Foo["Z"].toString();
|
2015-08-05 19:36:47 +02:00
|
|
|
let a0 = Foo.A.toString();
|
|
|
|
let a1 = Foo["A"].toString();
|
|
|
|
let b0 = Foo.B.toString();
|
|
|
|
let b1 = Foo["B"].toString();
|
|
|
|
let c0 = Foo.C.toString();
|
|
|
|
let c1 = Foo["C"].toString();
|