File: emitArrowFunctionThisCapturingES6.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (26 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
=== tests/cases/conformance/es6/arrowFunction/emitArrowFunctionThisCapturingES6.ts ===
var f1 = () => {
>f1 : Symbol(f1, Decl(emitArrowFunctionThisCapturingES6.ts, 0, 3))

    this.age = 10
};

var f2 = (x: string) => {
>f2 : Symbol(f2, Decl(emitArrowFunctionThisCapturingES6.ts, 4, 3))
>x : Symbol(x, Decl(emitArrowFunctionThisCapturingES6.ts, 4, 10))

    this.name = x
>x : Symbol(x, Decl(emitArrowFunctionThisCapturingES6.ts, 4, 10))
}

function foo(func: () => boolean){ }
>foo : Symbol(foo, Decl(emitArrowFunctionThisCapturingES6.ts, 6, 1))
>func : Symbol(func, Decl(emitArrowFunctionThisCapturingES6.ts, 8, 13))

foo(() => {
>foo : Symbol(foo, Decl(emitArrowFunctionThisCapturingES6.ts, 6, 1))

    this.age = 100;
    return true;
});