-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: LS: Inlay HintsHelp WantedYou can do thisYou can do this
Milestone
Description
π Search Terms
inlay hints parameters rest spread argument
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
N/A
π» Code
/// <reference path="fourslash.ts" />
//// function test(...rest: [first: number, ...middle: string[], last: string]) {}
//// test(10, 'a', 'b', 'c')
verify.baselineInlayHints(undefined, {
includeInlayParameterNameHints: "all",
includeInlayFunctionParameterTypeHints: true,
});π Actual behavior
function test(...rest: [first: number, ...middle: string[], last: string]) {}
test(/* first: */10, /* ...middle: */'a', /* last: */'b', 'c')π Expected behavior
function test(...rest: [first: number, ...middle: string[], last: string]) {}
test(/* first: */10, /* ...middle: */'a', 'b', /* last: */'c')Additional information about the issue
No response
Metadata
Metadata
Assignees
Labels
7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: LS: Inlay HintsHelp WantedYou can do thisYou can do this