TypeScript/tests/cases/fourslash/codeFixCorrectReturnValue25.ts

12 lines
352 B
TypeScript

/// <reference path='fourslash.ts' />
//// function Foo (a: () => number) { a() }
//// Foo(() => { /* leading */ 1 /* trailing */ })
verify.codeFix({
description: ts.Diagnostics.Remove_braces_from_arrow_function_body.message,
index: 1,
newFileContent:
`function Foo (a: () => number) { a() }
Foo(() => /* leading */ 1 /* trailing */)`
})