TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts
2015-01-09 16:16:39 -08:00

15 lines
209 B
TypeScript

// @target:es5
var f1 = () => {
this.age = 10
};
var f2 = (x: string) => {
this.name = x
}
function foo(func: () => boolean) { }
foo(() => {
this.age = 100;
return true;
});