TypeScript/tests/cases/fourslash/extendInterfaceOverloadedMethod.ts
Cyrus Najmabadi eed6f0deca Use an output format for quickinfo that more closely matches the original source.
i.e. use  "var v: string" instead of "(var) v: string".

The parens case should only be used when we're using an english description instead of
an actual language construct.
2015-03-24 00:16:49 -07:00

19 lines
503 B
TypeScript

/// <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>;
////var /**/x = b.foo2().foo(5).foo(); // 'x' is of type 'void'
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
edit.insert('');
goTo.marker();
verify.quickInfoIs('var x: void');
verify.numberOfErrorsInCurrentFile(0);