Closed
Description
Found with @RyanCavanaugh
interface Dog {
barkable: true
}
declare function getRover(): Dog;
export let x: Dog = getRover;
Expected
Type '() => Dog' is not assignable to 'Dog'.(2741)
input.ts(7, 21): Did you mean to call this expression?
Actual
Property 'barkable' is missing in type '() => Dog' but required in type 'Dog'.(2741)
input.ts(2, 5): 'barkable' is declared here.
input.ts(7, 21): Did you mean to call this expression?