TypeScript/tests/cases/compiler/generics4NoError.ts

7 lines
136 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(): boolean; }
var a: C<X>;
var b: C<Y>;