TypeScript/tests/cases/fourslash/overloadQuickInfo.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

23 lines
1 KiB
TypeScript

/// <reference path='fourslash.ts' />
////function Foo(a: string, b: number, c: boolean);
////function Foo(a: any, name: string, age: number);
////function Foo(fred: any[], name: string, age: number);
////function Foo(fred: any[ ] , name: string[], age: number);
////function Foo(fred: any[], name: string[], age: number[]);
////function Foo(fred: any, name: string[], age: number[]); // Extraneous spaces should get removed
////function Foo(fred: any, name: boolean, age: number[]);
////function Foo(dave: boolean, name: string);
////function Foo(fred: any, mandy: {(): number}, age: number[]); // Embedded interface will get converted to shorthand notation, () =>
////function Foo(fred: any, name: string, age: { });
////function Foo(fred: any, name: string, age: number[]);
////function Foo(test: string, name, age: number);
////function Foo();
////function Foo(x?: any, y?: any, z?: any) {
////}
////Fo/**/o();
goTo.marker();
verify.quickInfoIs("function Foo(): any (+12 overloads)");