48 lines
550 B
TypeScript
48 lines
550 B
TypeScript
// all expected to be errors
|
|
|
|
class clodule1<T>{
|
|
|
|
id: string;
|
|
value: T;
|
|
}
|
|
|
|
module clodule1 {
|
|
function f(x: T) { }
|
|
}
|
|
|
|
class clodule2<T>{
|
|
|
|
id: string;
|
|
value: T;
|
|
}
|
|
|
|
module clodule2 {
|
|
var x: T;
|
|
|
|
class D<U extends T>{
|
|
id: string;
|
|
value: U;
|
|
}
|
|
}
|
|
|
|
class clodule3<T>{
|
|
|
|
id: string;
|
|
value: T;
|
|
}
|
|
|
|
module clodule3 {
|
|
export var y = { id: T };
|
|
}
|
|
|
|
class clodule4<T>{
|
|
|
|
id: string;
|
|
value: T;
|
|
}
|
|
|
|
module clodule4 {
|
|
class D {
|
|
name: T;
|
|
}
|
|
}
|