Title: “T[][] is not assignable to Iterable<[T, T]>” while it is (at compile time) · Issue #7799 · microsoft/TypeScript · GitHub
Open Graph Title: “T[][] is not assignable to Iterable<[T, T]>” while it is (at compile time) · Issue #7799 · microsoft/TypeScript
X Title: “T[][] is not assignable to Iterable<[T, T]>” while it is (at compile time) · Issue #7799 · microsoft/TypeScript
Description: TypeScript Version: 1.8.9 Code new Map
Open Graph Description: TypeScript Version: 1.8.9 Code new Map
X Description: TypeScript Version: 1.8.9 Code new Map<number, number>([1, 2].map(x => [x, x])); // Error: // Argument of type 'number[][]' is not assignable to parameter of type 'Iterable<...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7799
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"“T[][] is not assignable to Iterable\u003c[T, T]>” while it is (at compile time)","articleBody":"**TypeScript Version:** \n\n1.8.9\n\n**Code**\n\n``` ts\nnew Map\u003cnumber, number>([1, 2].map(x => [x, x]));\n\n// Error:\n// Argument of type 'number[][]' is not assignable to parameter of type 'Iterable\u003c[number, number]>'…\n\n```\n\n**Expected behavior:** types are inferred correctly, no error shown.\n**Actual behavior:** type error.\n","author":{"url":"https://github.com/msklvsk","@type":"Person","name":"msklvsk"},"datePublished":"2016-04-04T09:47:30Z","url":"https://github.com/microsoft/TypeScript/issues/7799"}
| 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:273beeb9-ac5c-aa88-30ef-413f2820c142 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8DE:33F146:B6A84E:EC4302:6B00EA0C |
| html-safe-nonce | 90cbc570859e2df98208f7ec7ffd0ac1c762fcd0a2e81f596acf3e4405ed4101 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOERFOjMzRjE0NjpCNkE4NEU6RUM0MzAyOjZCMDBFQTBDIiwidmlzaXRvcl9pZCI6IjQ0NDYwMTgwNzYzNzAwNzAwMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 15185af77a6d9dbdd0126ed3af3af392c783ffd4e8699d7dc28c834d7fad29f2 |
| hovercard-subject-tag | issue:145634426 |
| 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/7799/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d88940f3a199b7d4c8b6ac226ae5a3e3f3e3f6ceeecc5bbfcc141ab3fc4514e6/microsoft/TypeScript/issues/7799 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d88940f3a199b7d4c8b6ac226ae5a3e3f3e3f6ceeecc5bbfcc141ab3fc4514e6/microsoft/TypeScript/issues/7799 |
| og:image:alt | TypeScript Version: 1.8.9 Code new Map |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msklvsk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width