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

8 lines
143 B
TypeScript

function log(a) { }
class Vector {
static foo = () => {
// 'this' should not be available in a static initializer.
log(this);
}
}