-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
declare function foo(): string;
foo()
(document.getElementById("lelement") as HTMLDivElement).id;
@mousetraps just ran into this totally garbage error message
[ts] Cannot invoke an expression whose type lacks a call signature. Type 'String' has no compatible call signatures.
Given
- A call expression with one argument
- whose open paren starts on the next line
- and whose sole argument is an
AsExpression
/TypeAssertionExpression
we should give a specialized error that ends in:
It is highly likely that you are missing a semicolon.
mousetraps, keichinger, x-strong, alex-kinokon and robert-cronin
Metadata
Metadata
Assignees
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript