eed6f0deca
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.
20 lines
No EOL
394 B
TypeScript
20 lines
No EOL
394 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
////class c1 {
|
|
//// get p1(): string {
|
|
//// return "30";
|
|
//// }
|
|
//// set p1(a: number) {
|
|
//// a = "30";
|
|
//// }
|
|
////}
|
|
////var val = new c1();
|
|
////var b = val.p1;
|
|
/////*1*/b;
|
|
|
|
// Resolve without typeCheck
|
|
goTo.marker('1');
|
|
verify.quickInfoIs("var b: string");
|
|
|
|
// TypeCheck
|
|
verify.numberOfErrorsInCurrentFile(3); |