117 lines
1.3 KiB
TypeScript
117 lines
1.3 KiB
TypeScript
//// [tests/cases/conformance/classes/classDeclarations/mergedClassInterface.ts] ////
|
|
|
|
//// [file1.ts]
|
|
|
|
|
|
declare class C1 { }
|
|
|
|
interface C1 { }
|
|
|
|
interface C2 { }
|
|
|
|
declare class C2 { }
|
|
|
|
class C3 { }
|
|
|
|
interface C3 { }
|
|
|
|
interface C4 { }
|
|
|
|
class C4 { }
|
|
|
|
interface C5 {
|
|
x1: number;
|
|
}
|
|
|
|
declare class C5 {
|
|
x2: number;
|
|
}
|
|
|
|
interface C5 {
|
|
x3: number;
|
|
}
|
|
|
|
interface C5 {
|
|
x4: number;
|
|
}
|
|
|
|
// checks if properties actually were merged
|
|
var c5 : C5;
|
|
c5.x1;
|
|
c5.x2;
|
|
c5.x3;
|
|
c5.x4;
|
|
|
|
//// [file2.ts]
|
|
|
|
declare class C6 { }
|
|
|
|
interface C7 { }
|
|
|
|
//// [file3.ts]
|
|
|
|
interface C6 { }
|
|
|
|
declare class C7 { }
|
|
|
|
//// [file1.js]
|
|
var C3 = (function () {
|
|
function C3() {
|
|
}
|
|
return C3;
|
|
}());
|
|
var C4 = (function () {
|
|
function C4() {
|
|
}
|
|
return C4;
|
|
}());
|
|
// checks if properties actually were merged
|
|
var c5;
|
|
c5.x1;
|
|
c5.x2;
|
|
c5.x3;
|
|
c5.x4;
|
|
//// [file2.js]
|
|
//// [file3.js]
|
|
|
|
|
|
//// [file1.d.ts]
|
|
declare class C1 {
|
|
}
|
|
interface C1 {
|
|
}
|
|
interface C2 {
|
|
}
|
|
declare class C2 {
|
|
}
|
|
declare class C3 {
|
|
}
|
|
interface C3 {
|
|
}
|
|
interface C4 {
|
|
}
|
|
declare class C4 {
|
|
}
|
|
interface C5 {
|
|
x1: number;
|
|
}
|
|
declare class C5 {
|
|
x2: number;
|
|
}
|
|
interface C5 {
|
|
x3: number;
|
|
}
|
|
interface C5 {
|
|
x4: number;
|
|
}
|
|
declare var c5: C5;
|
|
//// [file2.d.ts]
|
|
declare class C6 {
|
|
}
|
|
interface C7 {
|
|
}
|
|
//// [file3.d.ts]
|
|
interface C6 {
|
|
}
|
|
declare class C7 {
|
|
}
|