2020-04-02 19:06:14 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// function Foo (a: () => number) { a() }
|
|
|
|
//// Foo(() => { /* leading */ 1 /* trailing */ })
|
|
|
|
|
|
|
|
verify.codeFix({
|
2020-04-28 09:44:36 +02:00
|
|
|
description: ts.Diagnostics.Remove_braces_from_arrow_function_body.message,
|
2020-04-02 19:06:14 +02:00
|
|
|
index: 1,
|
|
|
|
newFileContent:
|
|
|
|
`function Foo (a: () => number) { a() }
|
|
|
|
Foo(() => /* leading */ 1 /* trailing */)`
|
|
|
|
})
|