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
|
//// [generics3.ts]
class C<T> { private x: T; }
interface X { f(): string; }
interface Y { f(): string; }
var a: C<X>;
var b: C<Y>;
a = b; // Ok - should be identical
//// [generics3.js]
var C = /** @class */ (function () {
function C() {
}
return C;
}());
var a;
var b;
a = b; // Ok - should be identical
//// [generics3.d.ts]
declare class C<T> {
private x;
}
interface X {
f(): string;
}
interface Y {
f(): string;
}
declare var a: C<X>;
declare var b: C<Y>;
|