File: typeOfThisInStaticMembers7%28target%3Des6%29.types

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (52 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (12)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
=== tests/cases/conformance/classes/members/instanceAndStaticMembers/typeOfThisInStaticMembers7.ts ===
class C {
>C : C

    static a = 1;
>a : number
>1 : 1

    static b = this.a + 1;
>b : number
>this.a + 1 : number
>this.a : number
>this : typeof C
>a : number
>1 : 1
}

class D extends C {
>D : D
>C : C

    static c = 2;
>c : number
>2 : 2

    static d = this.c + 1;
>d : number
>this.c + 1 : number
>this.c : number
>this : typeof D
>c : number
>1 : 1

    static e = 1 + (super.a) + (this.c + 1) + 1;
>e : number
>1 + (super.a) + (this.c + 1) + 1 : number
>1 + (super.a) + (this.c + 1) : number
>1 + (super.a) : number
>1 : 1
>(super.a) : number
>super.a : number
>super : typeof C
>a : number
>(this.c + 1) : number
>this.c + 1 : number
>this.c : number
>this : typeof D
>c : number
>1 : 1
>1 : 1
}