TypeScript/tests/cases/compiler/genericTypeWithMultipleBases3.ts

20 lines
186 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface IA<T> {
foo(x: T): T;
}
interface IB<T> {
bar(x: T): T;
}
interface IC<T> extends IA<T>, IB<T> { }
var c: IC<number>;
var x = c.foo;
var y = c.bar;