mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
80 lines
3.2 KiB
Plaintext
80 lines
3.2 KiB
Plaintext
//// [tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithInheritedPrivates2.ts] ////
|
|
|
|
=== mergedInterfacesWithInheritedPrivates2.ts ===
|
|
class C {
|
|
>C : Symbol(C, Decl(mergedInterfacesWithInheritedPrivates2.ts, 0, 0))
|
|
|
|
private x!: number;
|
|
>x : Symbol(C.x, Decl(mergedInterfacesWithInheritedPrivates2.ts, 0, 9))
|
|
}
|
|
|
|
class C2 {
|
|
>C2 : Symbol(C2, Decl(mergedInterfacesWithInheritedPrivates2.ts, 2, 1))
|
|
|
|
private w!: number;
|
|
>w : Symbol(C2.w, Decl(mergedInterfacesWithInheritedPrivates2.ts, 4, 10))
|
|
}
|
|
|
|
interface A extends C {
|
|
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates2.ts, 6, 1), Decl(mergedInterfacesWithInheritedPrivates2.ts, 10, 1))
|
|
>C : Symbol(C, Decl(mergedInterfacesWithInheritedPrivates2.ts, 0, 0))
|
|
|
|
y: string;
|
|
>y : Symbol(A.y, Decl(mergedInterfacesWithInheritedPrivates2.ts, 8, 23))
|
|
}
|
|
|
|
interface A extends C2 {
|
|
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates2.ts, 6, 1), Decl(mergedInterfacesWithInheritedPrivates2.ts, 10, 1))
|
|
>C2 : Symbol(C2, Decl(mergedInterfacesWithInheritedPrivates2.ts, 2, 1))
|
|
|
|
z: string;
|
|
>z : Symbol(A.z, Decl(mergedInterfacesWithInheritedPrivates2.ts, 12, 24))
|
|
}
|
|
|
|
class D extends C implements A { // error
|
|
>D : Symbol(D, Decl(mergedInterfacesWithInheritedPrivates2.ts, 14, 1))
|
|
>C : Symbol(C, Decl(mergedInterfacesWithInheritedPrivates2.ts, 0, 0))
|
|
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates2.ts, 6, 1), Decl(mergedInterfacesWithInheritedPrivates2.ts, 10, 1))
|
|
|
|
private w!: number;
|
|
>w : Symbol(D.w, Decl(mergedInterfacesWithInheritedPrivates2.ts, 16, 32))
|
|
|
|
y!: string;
|
|
>y : Symbol(D.y, Decl(mergedInterfacesWithInheritedPrivates2.ts, 17, 23))
|
|
|
|
z!: string;
|
|
>z : Symbol(D.z, Decl(mergedInterfacesWithInheritedPrivates2.ts, 18, 15))
|
|
}
|
|
|
|
class E extends C2 implements A { // error
|
|
>E : Symbol(E, Decl(mergedInterfacesWithInheritedPrivates2.ts, 20, 1))
|
|
>C2 : Symbol(C2, Decl(mergedInterfacesWithInheritedPrivates2.ts, 2, 1))
|
|
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates2.ts, 6, 1), Decl(mergedInterfacesWithInheritedPrivates2.ts, 10, 1))
|
|
|
|
w!: number;
|
|
>w : Symbol(E.w, Decl(mergedInterfacesWithInheritedPrivates2.ts, 22, 33))
|
|
|
|
y!: string;
|
|
>y : Symbol(E.y, Decl(mergedInterfacesWithInheritedPrivates2.ts, 23, 15))
|
|
|
|
z!: string;
|
|
>z : Symbol(E.z, Decl(mergedInterfacesWithInheritedPrivates2.ts, 24, 15))
|
|
}
|
|
|
|
declare var a: A;
|
|
>a : Symbol(a, Decl(mergedInterfacesWithInheritedPrivates2.ts, 28, 11))
|
|
>A : Symbol(A, Decl(mergedInterfacesWithInheritedPrivates2.ts, 6, 1), Decl(mergedInterfacesWithInheritedPrivates2.ts, 10, 1))
|
|
|
|
var r = a.x; // error
|
|
>r : Symbol(r, Decl(mergedInterfacesWithInheritedPrivates2.ts, 29, 3))
|
|
>a.x : Symbol(C.x, Decl(mergedInterfacesWithInheritedPrivates2.ts, 0, 9))
|
|
>a : Symbol(a, Decl(mergedInterfacesWithInheritedPrivates2.ts, 28, 11))
|
|
>x : Symbol(C.x, Decl(mergedInterfacesWithInheritedPrivates2.ts, 0, 9))
|
|
|
|
var r2 = a.w; // error
|
|
>r2 : Symbol(r2, Decl(mergedInterfacesWithInheritedPrivates2.ts, 30, 3))
|
|
>a.w : Symbol(C2.w, Decl(mergedInterfacesWithInheritedPrivates2.ts, 4, 10))
|
|
>a : Symbol(a, Decl(mergedInterfacesWithInheritedPrivates2.ts, 28, 11))
|
|
>w : Symbol(C2.w, Decl(mergedInterfacesWithInheritedPrivates2.ts, 4, 10))
|
|
|