File: mergedInterfacesWithInheritedPrivates.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (61 lines) | stat: -rw-r--r-- 2,385 bytes parent folder | download | duplicates (5)
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
=== tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithInheritedPrivates.ts ===
class C {
>C : Symbol(C, Decl(mergedInterfacesWithInheritedPrivates.ts, 0, 0))

    private x: number;
>x : Symbol(C.x, Decl(mergedInterfacesWithInheritedPrivates.ts, 0, 9))
}

interface A extends C {
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates.ts, 2, 1), Decl(mergedInterfacesWithInheritedPrivates.ts, 6, 1))
>C : Symbol(C, Decl(mergedInterfacesWithInheritedPrivates.ts, 0, 0))

    y: string;
>y : Symbol(A.y, Decl(mergedInterfacesWithInheritedPrivates.ts, 4, 23))
}

interface A {
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates.ts, 2, 1), Decl(mergedInterfacesWithInheritedPrivates.ts, 6, 1))

    z: string;
>z : Symbol(A.z, Decl(mergedInterfacesWithInheritedPrivates.ts, 8, 13))
}

class D implements A { // error
>D : Symbol(D, Decl(mergedInterfacesWithInheritedPrivates.ts, 10, 1))
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates.ts, 2, 1), Decl(mergedInterfacesWithInheritedPrivates.ts, 6, 1))

    private x: number;
>x : Symbol(D.x, Decl(mergedInterfacesWithInheritedPrivates.ts, 12, 22))

    y: string;
>y : Symbol(D.y, Decl(mergedInterfacesWithInheritedPrivates.ts, 13, 22))

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

class E implements A { // error
>E : Symbol(E, Decl(mergedInterfacesWithInheritedPrivates.ts, 16, 1))
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates.ts, 2, 1), Decl(mergedInterfacesWithInheritedPrivates.ts, 6, 1))

    x: number;
>x : Symbol(E.x, Decl(mergedInterfacesWithInheritedPrivates.ts, 18, 22))

    y: string;
>y : Symbol(E.y, Decl(mergedInterfacesWithInheritedPrivates.ts, 19, 14))

    z: string;
>z : Symbol(E.z, Decl(mergedInterfacesWithInheritedPrivates.ts, 20, 14))
}

var a: A;
>a : Symbol(a, Decl(mergedInterfacesWithInheritedPrivates.ts, 24, 3))
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates.ts, 2, 1), Decl(mergedInterfacesWithInheritedPrivates.ts, 6, 1))

var r = a.x; // error
>r : Symbol(r, Decl(mergedInterfacesWithInheritedPrivates.ts, 25, 3))
>a.x : Symbol(C.x, Decl(mergedInterfacesWithInheritedPrivates.ts, 0, 9))
>a : Symbol(a, Decl(mergedInterfacesWithInheritedPrivates.ts, 24, 3))
>x : Symbol(C.x, Decl(mergedInterfacesWithInheritedPrivates.ts, 0, 9))