Title: Old-style octal literal types are treated as decimal literal types · Issue #10101 · microsoft/TypeScript · GitHub
Open Graph Title: Old-style octal literal types are treated as decimal literal types · Issue #10101 · microsoft/TypeScript
X Title: Old-style octal literal types are treated as decimal literal types · Issue #10101 · microsoft/TypeScript
Description: // @target: es3 const i: 010 = 8; Actual: const i: 010 = 8; ~ Error: Type '8' is not assignable to type '10'; Expected: const i: 010 = 8; ~~~ Error: Octal literal types must use ES2015 syntax. Use the syntax '0o10'.
Open Graph Description: // @target: es3 const i: 010 = 8; Actual: const i: 010 = 8; ~ Error: Type '8' is not assignable to type '10'; Expected: const i: 010 = 8; ~~~ Error: Octal literal types must use ES2015 syntax. Use ...
X Description: // @target: es3 const i: 010 = 8; Actual: const i: 010 = 8; ~ Error: Type '8' is not assignable to type '10'; Expected: const i: 010 = 8; ~~~ Error: Octal literal types must use ES2...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/10101
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Old-style octal literal types are treated as decimal literal types","articleBody":"``` ts\r\n// @target: es3\r\nconst i: 010 = 8;\r\n```\r\n\r\nActual:\r\n\r\n```ts\r\nconst i: 010 = 8;\r\n ~\r\n Error: Type '8' is not assignable to type '10';\r\n```\r\n\r\n\r\nExpected:\r\n\r\n```ts\r\nconst i: 010 = 8;\r\n ~~~\r\n Error: Octal literal types must use ES2015 syntax. Use the syntax '0o10'.\r\n```\r\n","author":{"url":"https://github.com/sandersn","@type":"Person","name":"sandersn"},"datePublished":"2016-08-02T21:15:47Z","url":"https://github.com/microsoft/TypeScript/issues/10101"}
| 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:b0def76b-d0ca-d6e1-88d7-32260a3b8361 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA0C:1BB3B1:5BEAB2:7B4353:6B00A98A |
| html-safe-nonce | 8f406ce029b8700b1fc7f3a5a4907a8029020285d23eb9c689b8482ce754082e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTBDOjFCQjNCMTo1QkVBQjI6N0I0MzUzOjZCMDBBOThBIiwidmlzaXRvcl9pZCI6IjE2MzQ5MjkwMTcyNjQwNTY3MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ac48b5f3c041e125881dfecd9206917f43a43f56048822388b8123a3428e80cb |
| hovercard-subject-tag | issue:168990594 |
| 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/10101/issue_layout |
| twitter:image | https://opengraph.githubassets.com/42b2258bea8feae01baeb0ebcd23ba6a1e2eace7f2c93c0271cc0ddbcc6d7f78/microsoft/TypeScript/issues/10101 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/42b2258bea8feae01baeb0ebcd23ba6a1e2eace7f2c93c0271cc0ddbcc6d7f78/microsoft/TypeScript/issues/10101 |
| og:image:alt | // @target: es3 const i: 010 = 8; Actual: const i: 010 = 8; ~ Error: Type '8' is not assignable to type '10'; Expected: const i: 010 = 8; ~~~ Error: Octal literal types must use ES2015 syntax. Use ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sandersn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| 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 | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width