Repository navigation
out of range index in a tuple magically works #5203
Copy link
Copy link
Closed
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Activity
- addedSuggestionAn idea for TypeScriptAn idea for TypeScriptIn DiscussionNot yet reached consensusNot yet reached consensus
on Oct 12, 2015 RyanCavanaugh commented
on Oct 12, 2015 MemberMore actionsIt is currently per spec, but I don't think this behavior is desirable. This should probably be an error by some new rule.
Reacted by SlurpTheo, Andrii Dieiev, fdenzer and Mikhail ZhuravlevDanielRosenwasser commented
on Oct 12, 2015 MemberMore actionsWell the problem is that you're going to get that numeric index signature from
Array<T>. There is another discussion about having an alternative interface for tuples at #4988 (comment).zpdDG4gta8XKpMCd commented
on Oct 12, 2015 AuthorMore actionsI know guys you are trying your best, but I don't see an array, I only see a tuple which is not an array in a broad sense.
👍 This is invalid behavior.
OliverJAsh commented
on Dec 23, 2015 ContributorMore actionsI ran into exactly the same issue.
See proposal #6229
- addedCommittedThe team has roadmapped this issueThe team has roadmapped this issueand removedIn DiscussionNot yet reached consensusNot yet reached consensus
on Aug 6, 2018 RyanCavanaugh commented
on Aug 6, 2018 MemberMore actionsAleksey-Bykov the arc of language design is long but it bends toward justice. Accepting PRs
Reacted by Wenlu Wang, SlurpTheo and Mikhail ZhuravlevReacted by Evan MartinzpdDG4gta8XKpMCd commented
on Aug 6, 2018 AuthorMore actionsgod works in mysterious ways
Reacted by Ryan Cavanaugh, Kagami Sascha Rosylight, Wenlu Wang, Marin Marinov and SlurpTheo- addedGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green light
on Aug 8, 2018
Metadata
Metadata
Assignees
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
By design, isn't it?