TypeScript/tests/cases/compiler/staticMemberWithStringAndNumberNames.ts
2014-07-12 17:30:19 -07:00

12 lines
193 B
TypeScript

class C {
static "foo" = 0;
static 0 = 1;
x = C['foo'];
x2 = C['0'];
x3 = C[0];
static s = C['foo'];
static s2 = C['0'];
static s3 = C[0];
}