10 lines
310 B
TypeScript
10 lines
310 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//// function Foo (a: (() => number) | (() => undefined) ) { a() }
|
|
//// Foo(() => { 1 })
|
|
|
|
verify.codeFixAvailable([
|
|
{ description: ts.Diagnostics.Add_a_return_statement.message },
|
|
{ description: ts.Diagnostics.Remove_braces_from_arrow_function_body.message }
|
|
]);
|