2020-04-02 19:06:14 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// interface A {
|
|
|
|
//// a: () => number
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// function Foo (): A {
|
|
|
|
//// return {
|
|
|
|
//// a: () => { 1 }
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
|
|
|
|
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 }
|
2020-04-02 19:06:14 +02:00
|
|
|
]);
|