Title: out of range index in a tuple magically works · Issue #5203 · microsoft/TypeScript · GitHub
Open Graph Title: out of range index in a tuple magically works · Issue #5203 · microsoft/TypeScript
X Title: out of range index in a tuple magically works · Issue #5203 · microsoft/TypeScript
Description: var x : [number, number] = [1, 2]; var y = x[2]; // expected a compile error, actual ok By design, isn't it?
Open Graph Description: var x : [number, number] = [1, 2]; var y = x[2]; // expected a compile error, actual ok By design, isn't it?
X Description: var x : [number, number] = [1, 2]; var y = x[2]; // expected a compile error, actual ok By design, isn't it?
Opengraph URL: https://github.com/microsoft/TypeScript/issues/5203
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"out of range index in a tuple magically works","articleBody":"``` typescript\n\nvar x : [number, number] = [1, 2];\nvar y = x[2]; // expected a compile error, actual ok\n```\n\nBy [design](https://github.com/aleksey-bykov/by-design-script), isn't it?\n","author":{"url":"https://github.com/zpdDG4gta8XKpMCd","@type":"Person","name":"zpdDG4gta8XKpMCd"},"datePublished":"2015-10-10T20:08:36Z","url":"https://github.com/microsoft/TypeScript/issues/5203"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:77671d06-8817-0e07-16ee-223cb24d2413 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82FE:287EE1:45ED82:603018:6B0451B2 |
| html-safe-nonce | a1c0c6ca56bd1ae9f06bd7bc648f1b30a86dc11391dbb957ea75139b498f0724 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkZFOjI4N0VFMTo0NUVEODI6NjAzMDE4OjZCMDQ1MUIyIiwidmlzaXRvcl9pZCI6Ijg3Njk1ODg1MzYwMDY2OTMyOTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | edb82a5842da258db2e6da245aa8f36734ff1900210d388f532d27fa7cac2f26 |
| hovercard-subject-tag | issue:110814182 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/5203/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50f24f17effe23de85da93937bc64f62fdbbaab7936e297829e6e1087f9bd9fe/microsoft/TypeScript/issues/5203 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50f24f17effe23de85da93937bc64f62fdbbaab7936e297829e6e1087f9bd9fe/microsoft/TypeScript/issues/5203 |
| og:image:alt | var x : [number, number] = [1, 2]; var y = x[2]; // expected a compile error, actual ok By design, isn't it? |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zpdDG4gta8XKpMCd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width