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.
17 lines
355 B
TypeScript
17 lines
355 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
////class c1 {
|
|
//// private b: number;
|
|
//// constructor(a: string) {
|
|
//// this.b = a;
|
|
//// }
|
|
////}
|
|
////var val = new c1("hello");
|
|
/////*1*/val;
|
|
|
|
// Do resolve without typeCheck
|
|
goTo.marker('1');
|
|
verify.quickInfoIs("var val: c1");
|
|
|
|
// TypeCheck
|
|
verify.numberOfErrorsInCurrentFile(1);
|