TypeScript/tests/cases/fourslash/refactorConvertArrowFunctionOrFunctionExpression_Availability_Arrow_this.ts

10 lines
464 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
//// const bar = 42;
//// const foo = /*x*/(/*w*/) => this.bar;
goTo.select("x", "w");
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to named function");
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to anonymous function");
verify.not.refactorAvailable("Convert arrow function or function expression", "Convert to arrow function");