mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
58 lines
864 B
TypeScript
58 lines
864 B
TypeScript
//// [tests/cases/conformance/interfaces/declarationMerging/mergedInterfacesWithInheritedPrivates3.ts] ////
|
|
|
|
//// [mergedInterfacesWithInheritedPrivates3.ts]
|
|
class C {
|
|
private x: number;
|
|
}
|
|
|
|
class C2 {
|
|
private x: number;
|
|
}
|
|
|
|
interface A extends C { // error
|
|
y: string;
|
|
}
|
|
|
|
interface A extends C2 {
|
|
z: string;
|
|
}
|
|
|
|
class D extends C implements A { // error
|
|
y: string;
|
|
z: string;
|
|
}
|
|
|
|
namespace M {
|
|
class C {
|
|
private x: string;
|
|
}
|
|
|
|
class C2 {
|
|
private x: number;
|
|
}
|
|
|
|
interface A extends C { // error, privates conflict
|
|
y: string;
|
|
}
|
|
|
|
interface A extends C2 {
|
|
z: string;
|
|
}
|
|
}
|
|
|
|
//// [mergedInterfacesWithInheritedPrivates3.js]
|
|
"use strict";
|
|
class C {
|
|
}
|
|
class C2 {
|
|
}
|
|
class D extends C {
|
|
}
|
|
var M;
|
|
(function (M) {
|
|
class C {
|
|
}
|
|
class C2 {
|
|
}
|
|
})(M || (M = {}));
|