13 lines
333 B
TypeScript
13 lines
333 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
//// interface A {
|
||
|
//// bar: string
|
||
|
//// }
|
||
|
////
|
||
|
//// function Foo (a: () => A) { a() }
|
||
|
//// Foo(() => { bar: '1' })
|
||
|
|
||
|
verify.codeFixAvailable([
|
||
|
{ description: 'Wrap the following body with parentheses which should be an object literal' },
|
||
|
{ description: 'Remove unused label' },
|
||
|
]);
|