File: contextualThisType.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 (34 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (7)
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
27
28
29
30
31
32
33
34
=== tests/cases/conformance/types/thisType/contextualThisType.ts ===
interface X {
>X : Symbol(X, Decl(contextualThisType.ts, 0, 0))

    a: (p: this) => this;
>a : Symbol(X.a, Decl(contextualThisType.ts, 0, 13))
>p : Symbol(p, Decl(contextualThisType.ts, 1, 8))
}

interface Y extends X {
>Y : Symbol(Y, Decl(contextualThisType.ts, 2, 1))
>X : Symbol(X, Decl(contextualThisType.ts, 0, 0))
}

var x: Y = {
>x : Symbol(x, Decl(contextualThisType.ts, 7, 3))
>Y : Symbol(Y, Decl(contextualThisType.ts, 2, 1))

    a(p) {
>a : Symbol(a, Decl(contextualThisType.ts, 7, 12))
>p : Symbol(p, Decl(contextualThisType.ts, 8, 6))

        return p;
>p : Symbol(p, Decl(contextualThisType.ts, 8, 6))
    }
}

var y = x.a(x);
>y : Symbol(y, Decl(contextualThisType.ts, 13, 3))
>x.a : Symbol(X.a, Decl(contextualThisType.ts, 0, 13))
>x : Symbol(x, Decl(contextualThisType.ts, 7, 3))
>a : Symbol(X.a, Decl(contextualThisType.ts, 0, 13))
>x : Symbol(x, Decl(contextualThisType.ts, 7, 3))