File: interfaceExtendingClassWithPrivates.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 (40 lines) | stat: -rw-r--r-- 1,601 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
=== tests/cases/conformance/interfaces/interfacesExtendingClasses/interfaceExtendingClassWithPrivates.ts ===
class Foo {
>Foo : Symbol(Foo, Decl(interfaceExtendingClassWithPrivates.ts, 0, 0))

    private x: string;
>x : Symbol(Foo.x, Decl(interfaceExtendingClassWithPrivates.ts, 0, 11))
}

interface I extends Foo { // error
>I : Symbol(I, Decl(interfaceExtendingClassWithPrivates.ts, 2, 1))
>Foo : Symbol(Foo, Decl(interfaceExtendingClassWithPrivates.ts, 0, 0))

    x: string;
>x : Symbol(I.x, Decl(interfaceExtendingClassWithPrivates.ts, 4, 25))
}

interface I2 extends Foo {
>I2 : Symbol(I2, Decl(interfaceExtendingClassWithPrivates.ts, 6, 1))
>Foo : Symbol(Foo, Decl(interfaceExtendingClassWithPrivates.ts, 0, 0))

    y: string;
>y : Symbol(I2.y, Decl(interfaceExtendingClassWithPrivates.ts, 8, 26))
}

var i: I2;
>i : Symbol(i, Decl(interfaceExtendingClassWithPrivates.ts, 12, 3))
>I2 : Symbol(I2, Decl(interfaceExtendingClassWithPrivates.ts, 6, 1))

var r = i.y;
>r : Symbol(r, Decl(interfaceExtendingClassWithPrivates.ts, 13, 3))
>i.y : Symbol(I2.y, Decl(interfaceExtendingClassWithPrivates.ts, 8, 26))
>i : Symbol(i, Decl(interfaceExtendingClassWithPrivates.ts, 12, 3))
>y : Symbol(I2.y, Decl(interfaceExtendingClassWithPrivates.ts, 8, 26))

var r2 = i.x; // error
>r2 : Symbol(r2, Decl(interfaceExtendingClassWithPrivates.ts, 14, 3))
>i.x : Symbol(Foo.x, Decl(interfaceExtendingClassWithPrivates.ts, 0, 11))
>i : Symbol(i, Decl(interfaceExtendingClassWithPrivates.ts, 12, 3))
>x : Symbol(Foo.x, Decl(interfaceExtendingClassWithPrivates.ts, 0, 11))