-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
TypeScript Version: 3.1.0-dev.20180801
Search Terms: spread tuple
Code
interface Foo<ArgsT extends any[]> {}
interface Bar<SubArgsT extends any[]> extends Foo<[number, ...SubArgsT]>{ }
Expected behavior: Successful compilation. Array subclasses are not allowed as rest arguments for now, but when it is about generics I expect behavior similar to what is done in #24897
Actual behavior: Failed with TS2574: A rest element type must be an array type.
j-f1, Kinrany, McPrescott, rajendranr-5483, earthlyreason and 51 more
Metadata
Metadata
Assignees
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript