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

20 lines
607 B
TypeScript

/// <reference path='fourslash.ts' />
////module M {
//// export interface /*1*/__proto__ {}
////}
////var /*2*/__proto__: M.__proto__;
/////*3*/
////var /*4*/fun: (__proto__: any) => boolean;
goTo.marker('1');
verify.quickInfoIs("interface M.__proto__", "");
goTo.marker('2');
verify.quickInfoIs("var __proto__: M.__proto__", "");
goTo.marker('3');
verify.completionListContains("__proto__", "var __proto__: M.__proto__", "");
edit.insert("__proto__");
goTo.definition();
verify.caretAtMarker('2');
goTo.marker('4');
verify.quickInfoIs("var fun: (__proto__: any) => boolean", "");