TypeScript/tests/baselines/reference/emitArrowFunctionThisCapturing.symbols
2015-04-15 16:44:20 -07:00

27 lines
747 B
Plaintext

=== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturing.ts ===
var f1 = () => {
>f1 : Symbol(f1, Decl(emitArrowFunctionThisCapturing.ts, 0, 3))
this.age = 10
};
var f2 = (x: string) => {
>f2 : Symbol(f2, Decl(emitArrowFunctionThisCapturing.ts, 4, 3))
>x : Symbol(x, Decl(emitArrowFunctionThisCapturing.ts, 4, 10))
this.name = x
>x : Symbol(x, Decl(emitArrowFunctionThisCapturing.ts, 4, 10))
}
function foo(func: () => boolean) { }
>foo : Symbol(foo, Decl(emitArrowFunctionThisCapturing.ts, 6, 1))
>func : Symbol(func, Decl(emitArrowFunctionThisCapturing.ts, 8, 13))
foo(() => {
>foo : Symbol(foo, Decl(emitArrowFunctionThisCapturing.ts, 6, 1))
this.age = 100;
return true;
});