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

15 lines
No EOL
309 B
TypeScript

/// <reference path='fourslash.ts'/>
////function foo(a: string) {
////}
////foo(/*1*/undefined);
////var x = {
//// undefined: 10
////};
////x./*2*/undefined = 30;
goTo.marker('1');
verify.quickInfoIs('var undefined');
goTo.marker('2');
verify.quickInfoIs('(property) undefined: number');