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

9 lines
418 B
TypeScript

/// <reference path='fourslash.ts' />
//// const a = (a: number) => { re/*a*/tur/*b*/n a; };
// Only offer refactor 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");