mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
64 lines
2.4 KiB
Plaintext
64 lines
2.4 KiB
Plaintext
//// [tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithInheritedPrivates.ts] ////
|
|
|
|
=== 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, 23))
|
|
|
|
z!: string;
|
|
>z : Symbol(D.z, Decl(mergedInterfacesWithInheritedPrivates.ts, 14, 15))
|
|
}
|
|
|
|
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, 15))
|
|
|
|
z!: string;
|
|
>z : Symbol(E.z, Decl(mergedInterfacesWithInheritedPrivates.ts, 20, 15))
|
|
}
|
|
|
|
declare var a: A;
|
|
>a : Symbol(a, Decl(mergedInterfacesWithInheritedPrivates.ts, 24, 11))
|
|
>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, 11))
|
|
>x : Symbol(C.x, Decl(mergedInterfacesWithInheritedPrivates.ts, 0, 9))
|
|
|