File: mergedInterfacesWithMultipleBases.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 (121 lines) | stat: -rw-r--r-- 4,818 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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
=== tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithMultipleBases.ts ===
// merged interfaces behave as if all extends clauses from each declaration are merged together
// no errors expected

class C {
>C : Symbol(C, Decl(mergedInterfacesWithMultipleBases.ts, 0, 0))

    a: number;
>a : Symbol(C.a, Decl(mergedInterfacesWithMultipleBases.ts, 3, 9))
}

class C2 {
>C2 : Symbol(C2, Decl(mergedInterfacesWithMultipleBases.ts, 5, 1))

    b: number;
>b : Symbol(C2.b, Decl(mergedInterfacesWithMultipleBases.ts, 7, 10))
}

interface A extends C {
>A : Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 9, 1), Decl(mergedInterfacesWithMultipleBases.ts, 13, 1))
>C : Symbol(C, Decl(mergedInterfacesWithMultipleBases.ts, 0, 0))

    y: string;
>y : Symbol(A.y, Decl(mergedInterfacesWithMultipleBases.ts, 11, 23))
}

interface A extends C2 {
>A : Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 9, 1), Decl(mergedInterfacesWithMultipleBases.ts, 13, 1))
>C2 : Symbol(C2, Decl(mergedInterfacesWithMultipleBases.ts, 5, 1))

    z: string;
>z : Symbol(A.z, Decl(mergedInterfacesWithMultipleBases.ts, 15, 24))
}

class D implements A {
>D : Symbol(D, Decl(mergedInterfacesWithMultipleBases.ts, 17, 1))
>A : Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 9, 1), Decl(mergedInterfacesWithMultipleBases.ts, 13, 1))

    a: number;
>a : Symbol(D.a, Decl(mergedInterfacesWithMultipleBases.ts, 19, 22))

    b: number;
>b : Symbol(D.b, Decl(mergedInterfacesWithMultipleBases.ts, 20, 14))

    y: string;
>y : Symbol(D.y, Decl(mergedInterfacesWithMultipleBases.ts, 21, 14))

    z: string;
>z : Symbol(D.z, Decl(mergedInterfacesWithMultipleBases.ts, 22, 14))
}

var a: A;
>a : Symbol(a, Decl(mergedInterfacesWithMultipleBases.ts, 26, 3))
>A : Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 9, 1), Decl(mergedInterfacesWithMultipleBases.ts, 13, 1))

var r = a.a;
>r : Symbol(r, Decl(mergedInterfacesWithMultipleBases.ts, 27, 3))
>a.a : Symbol(C.a, Decl(mergedInterfacesWithMultipleBases.ts, 3, 9))
>a : Symbol(a, Decl(mergedInterfacesWithMultipleBases.ts, 26, 3))
>a : Symbol(C.a, Decl(mergedInterfacesWithMultipleBases.ts, 3, 9))

// generic interfaces in a module
module M {
>M : Symbol(M, Decl(mergedInterfacesWithMultipleBases.ts, 27, 12))

    class C<T> {
>C : Symbol(C, Decl(mergedInterfacesWithMultipleBases.ts, 30, 10))
>T : Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 31, 12))

        a: T;
>a : Symbol(C.a, Decl(mergedInterfacesWithMultipleBases.ts, 31, 16))
>T : Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 31, 12))
    }

    class C2<T> {
>C2 : Symbol(C2, Decl(mergedInterfacesWithMultipleBases.ts, 33, 5))
>T : Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 35, 13))

        b: T;
>b : Symbol(C2.b, Decl(mergedInterfacesWithMultipleBases.ts, 35, 17))
>T : Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 35, 13))
    }

    interface A<T> extends C<T> {
>A : Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 37, 5), Decl(mergedInterfacesWithMultipleBases.ts, 41, 5))
>T : Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16))
>C : Symbol(C, Decl(mergedInterfacesWithMultipleBases.ts, 30, 10))
>T : Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16))

        y: T;
>y : Symbol(A.y, Decl(mergedInterfacesWithMultipleBases.ts, 39, 33))
>T : Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16))
    }

    interface A<T> extends C2<string> {
>A : Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 37, 5), Decl(mergedInterfacesWithMultipleBases.ts, 41, 5))
>T : Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16))
>C2 : Symbol(C2, Decl(mergedInterfacesWithMultipleBases.ts, 33, 5))

        z: T;
>z : Symbol(A.z, Decl(mergedInterfacesWithMultipleBases.ts, 43, 39))
>T : Symbol(T, Decl(mergedInterfacesWithMultipleBases.ts, 39, 16), Decl(mergedInterfacesWithMultipleBases.ts, 43, 16))
    }

    class D implements A<boolean> {
>D : Symbol(D, Decl(mergedInterfacesWithMultipleBases.ts, 45, 5))
>A : Symbol(A, Decl(mergedInterfacesWithMultipleBases.ts, 37, 5), Decl(mergedInterfacesWithMultipleBases.ts, 41, 5))

        a: boolean;
>a : Symbol(D.a, Decl(mergedInterfacesWithMultipleBases.ts, 47, 35))

        b: string;
>b : Symbol(D.b, Decl(mergedInterfacesWithMultipleBases.ts, 48, 19))

        y: boolean;
>y : Symbol(D.y, Decl(mergedInterfacesWithMultipleBases.ts, 49, 18))

        z: boolean;
>z : Symbol(D.z, Decl(mergedInterfacesWithMultipleBases.ts, 50, 19))
    }
}