TypeScript/tests/cases/compiler/generics3.ts

8 lines
170 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// @declaration: true
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