TypeScript/tests/cases/compiler/scopeCheckStaticInitializer.ts
2017-04-04 14:50:42 -07:00

15 lines
274 B
TypeScript

class X {
static illegalBeforeProperty = X.data;
static okBeforeMethod = X.method;
static illegal2 = After.data;
static illegal3 = After.method;
static data = 13;
static method() { }
}
class After {
static data = 12;
static method() { };
}