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
|
=== tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModuleMemberThatUsesClassTypeParameter.ts ===
// all expected to be errors
class clodule1<T>{
>clodule1 : clodule1<T>
id: string;
>id : string
value: T;
>value : T
}
module clodule1 {
>clodule1 : typeof clodule1
function f(x: T) { }
>f : (x: any) => void
>x : any
}
class clodule2<T>{
>clodule2 : clodule2<T>
id: string;
>id : string
value: T;
>value : T
}
module clodule2 {
>clodule2 : typeof clodule2
var x: T;
>x : any
class D<U extends T>{
>D : D<U>
id: string;
>id : string
value: U;
>value : U
}
}
class clodule3<T>{
>clodule3 : clodule3<T>
id: string;
>id : string
value: T;
>value : T
}
module clodule3 {
>clodule3 : typeof clodule3
export var y = { id: T };
>y : { id: any; }
>{ id: T } : { id: any; }
>id : any
>T : any
}
class clodule4<T>{
>clodule4 : clodule4<T>
id: string;
>id : string
value: T;
>value : T
}
module clodule4 {
>clodule4 : typeof clodule4
class D {
>D : D
name: T;
>name : any
}
}
|