-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Closed
Copy link
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisPursuitFellowshipHelp wanted from Pursuit fellowship; others please avoid until Dec 19Help wanted from Pursuit fellowship; others please avoid until Dec 19SuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
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?
Metadata
Metadata
Assignees
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisPursuitFellowshipHelp wanted from Pursuit fellowship; others please avoid until Dec 19Help wanted from Pursuit fellowship; others please avoid until Dec 19SuggestionAn idea for TypeScriptAn idea for TypeScript