TypeScript/tests/cases/fourslash/refactorAddOrRemoveBracesToArrowFunctionForTriggerReason1.ts
2020-06-02 19:06:12 -07:00

9 lines
433 B
TypeScript

/// <reference path='fourslash.ts' />
//// const a = (a: number) => { return/*a*//*b*/ a; };
// Only offer refactor for empty span in body if explicity requested
goTo.select("a", "b");
verify.not.refactorAvailableForTriggerReason("implicit", "Add or remove braces in an arrow function");
verify.refactorAvailableForTriggerReason("invoked", "Add or remove braces in an arrow function", "Remove braces from arrow function");