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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
=== tests/cases/compiler/interfaceDeclaration3.ts ===
interface I1 { item:number; }
>item : number
module M1 {
>M1 : typeof M1
interface I1 { item:string; }
>item : string
interface I2 { item:number; }
>item : number
class C1 implements I1 {
>C1 : C1
public item:number;
>item : number
}
class C2 implements I1 {
>C2 : C2
public item:string;
>item : string
}
class C3 implements I2 {
>C3 : C3
public item:number;
>item : number
}
class C4 implements M2.I1 {
>C4 : C4
>M2 : typeof M2
public item:string;
>item : string
}
class C5 implements M2.M3.I1 {
>C5 : C5
>M2.M3 : any
>M2 : typeof M2
>M3 : any
public item:string;
>item : string
}
}
export module M2 {
>M2 : typeof M2
export interface I1 { item:string; }
>item : string
export interface I2 { item:string; }
>item : string
export module M3 {
export interface I1 { item:string; }
>item : string
}
class C1 implements I1 {
>C1 : C1
public item:number;
>item : number
}
class C2 implements I1 {
>C2 : C2
public item:string;
>item : string
}
class C3 implements I2 {
>C3 : C3
public item:string;
>item : string
}
}
class C1 implements I1 {
>C1 : C1
public item:number;
>item : number
}
class C2 implements M2.I1 {
>C2 : C2
>M2 : typeof M2
public item:string;
>item : string
}
class C3 implements M2.M3.I1 {
>C3 : C3
>M2.M3 : any
>M2 : typeof M2
>M3 : any
public item:string;
>item : string
}
interface I2 extends I1 { item:string; }
>item : string
|