TypeScript/tests/cases/compiler/thisInArrowFunctionInStaticInitializer1.ts

8 lines
143 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
function log(a) { }
class Vector {
static foo = () => {
// 'this' should not be available in a static initializer.
log(this);
}
}