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.
15 lines
No EOL
309 B
TypeScript
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'); |