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

26 lines
713 B
TypeScript

/// <reference path='fourslash.ts'/>
////module MM {
//// interface B<T> {
//// foo: number;
//// }
//// interface B<T> {
//// bar: string;
//// }
//// var b: B<string>;
//// var r3 = b.foo; // number
//// var r/*2*/4 = b.b/*1*/ar; // string
////}
goTo.marker('1');
verify.quickInfoIs("(property) B<string>.bar: string", undefined);
edit.deleteAtCaret(1);
edit.insert('z');
verify.quickInfoIs("any");
verify.numberOfErrorsInCurrentFile(1);
edit.backspace(1);
edit.insert('a');
verify.quickInfoIs("(property) B<string>.bar: string", undefined);
goTo.marker('2');
verify.quickInfoIs("var r4: string", undefined);
verify.numberOfErrorsInCurrentFile(0);