TypeScript/tests/cases/fourslash/extendInterfaceOverloadedMethod.ts

16 lines
361 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <reference path='fourslash.ts'/>
////interface A<T> {
//// foo(a: T): B<T>;
//// foo(): void ;
//// foo2(): B<number>;
////}
////interface B<T> extends A<T> {
//// bar(): void ;
////}
////var b: B<number>;
2014-10-07 20:30:27 +02:00
////var /**/x = b.foo2().foo(5).foo(); // 'x' is of type 'void'
2014-07-13 01:04:16 +02:00
2016-09-09 18:02:55 +02:00
verify.quickInfoAt("", "var x: void");
verify.noErrors();