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.
25 lines
596 B
TypeScript
25 lines
596 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////interface Foo {
|
|
//// doStuff(x: string, callback: (a: string) => string);
|
|
////}
|
|
////var x1: Foo = {
|
|
//// y/*1*/1: () => {
|
|
//// return "";
|
|
//// } ,
|
|
//// doStuff: (z, callback) => { return callback(this.y); }
|
|
////}
|
|
////var value = 3;
|
|
////class Foo {
|
|
//// static getRandomPosition() {
|
|
//// return {
|
|
//// "row": v/*2*/alue
|
|
//// }
|
|
//// }
|
|
////}
|
|
|
|
goTo.marker("1");
|
|
verify.quickInfoIs("(property) y1: () => string", undefined);
|
|
|
|
goTo.marker("2");
|
|
verify.quickInfoIs("var value: number");
|