swc/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionThisCapturingES6.ts

15 lines
191 B
TypeScript

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