-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Quick Infoe.g. hover text, tool-tips, and tooltips.e.g. hover text, tool-tips, and tooltips.FixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 2.9.0-dev.20180426
Search Terms:
Code
declare function tag<T>(string: TemplateStringsArray, ...values: T[]): void;
tag``;
tag`${1}`;
tag<number>``;
Expected behavior:
the following signature help when hovering over tag
:
function tag<{}>(string: TemplateStringsArray, ...values: {}[]): void
function tag<number>(string: TemplateStringsArray, ...values: number[]): void
function tag<number>(string: TemplateStringsArray, ...values: number[]): void
Actual behavior:
Signature help shows function tag<T>(string: TemplateStringsArray, ...values: T[]): void
in all cases.
Signature help works as expected when calling tag
directly using a CallExpression.
Related Issues:
#22873 same issue for JSX elements
#23492 PR for JSX elements
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Quick Infoe.g. hover text, tool-tips, and tooltips.e.g. hover text, tool-tips, and tooltips.FixedA PR has been merged for this issueA PR has been merged for this issue