File: override8.types

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (70 lines) | stat: -rw-r--r-- 903 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//// [tests/cases/conformance/override/override8.ts] ////

=== override8.ts ===
class B {
>B : B

    a: string
>a : string
}

class D extends B {
>D : D
>B : B

    constructor(public a: string, public b: string) {
>a : string
>b : string

        super();
>super() : void
>super : typeof B
    }
}

class BB {
>BB : BB

    constructor(public a: string) {
>a : string

    }
}

class DD extends BB {
>DD : DD
>BB : BB

    constructor(public a: string) {
>a : string

        super(a)
>super(a) : void
>super : typeof BB
>a : string
    }
}

class DDD extends BB {
>DDD : DDD
>BB : BB

    public a: string;
>a : string

    constructor(a: string) {
>a : string

        super(a)
>super(a) : void
>super : typeof BB
>a : string

        this.a = a
>this.a = a : string
>this.a : string
>this : this
>a : string
>a : string
    }
}