2020-04-02 19:06:14 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
//// interface A {
|
|
|
|
//// bar: string
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// function Foo (a: () => A) { a() }
|
|
|
|
//// Foo(() => {
|
|
|
|
//// { bar: '123' }
|
|
|
|
//// })
|
|
|
|
|
|
|
|
verify.codeFixAvailable([
|
2020-04-28 09:44:36 +02:00
|
|
|
{ description: ts.Diagnostics.Add_a_return_statement.message },
|
|
|
|
{ description: ts.Diagnostics.Remove_braces_from_arrow_function_body.message },
|
|
|
|
{ description: ts.Diagnostics.Remove_unused_label.message }
|
2020-04-02 19:06:14 +02:00
|
|
|
]);
|