TypeScript/tests/cases/compiler/badThisBinding.ts

13 lines
204 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
declare function foo(a:any): any;
declare function bar(a:any): any;
class Greeter {
constructor() {
foo(() => {
bar(() => {
var x = this;
});
});
}
}