File: interfaceWithPropertyThatIsPrivateInBaseType.symbols

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 (34 lines) | stat: -rw-r--r-- 1,481 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
=== tests/cases/conformance/interfaces/interfaceDeclarations/interfaceWithPropertyThatIsPrivateInBaseType.ts ===
class Base {
>Base : Symbol(Base, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 0, 0))

    private x: number;
>x : Symbol(Base.x, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 0, 12))
}

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

    x: number;
>x : Symbol(Foo.x, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 4, 28))
}

class Base2<T> {
>Base2 : Symbol(Base2, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 6, 1))
>T : Symbol(T, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 8, 12))

    private x: T;
>x : Symbol(Base2.x, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 8, 16))
>T : Symbol(T, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 8, 12))
}

interface Foo2<T> extends Base2<T> { // error
>Foo2 : Symbol(Foo2, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 10, 1))
>T : Symbol(T, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 12, 15))
>Base2 : Symbol(Base2, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 6, 1))
>T : Symbol(T, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 12, 15))

    x: number;
>x : Symbol(Foo2.x, Decl(interfaceWithPropertyThatIsPrivateInBaseType.ts, 12, 36))
}