26 lines
747 B
Text
26 lines
747 B
Text
=== 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;
|
|
});
|
|
|