Title: Readonly vars getting typecast to "false" instead of "boolean" · Issue #13113 · microsoft/TypeScript · GitHub
Open Graph Title: Readonly vars getting typecast to "false" instead of "boolean" · Issue #13113 · microsoft/TypeScript
X Title: Readonly vars getting typecast to "false" instead of "boolean" · Issue #13113 · microsoft/TypeScript
Description: TypeScript Version: 2.1.4 Code class blah { private readonly _something = false; constructor() { this._something = true; } } Expected behavior: Doesn't cause an error Actual behavior: Causes an error
Open Graph Description: TypeScript Version: 2.1.4 Code class blah { private readonly _something = false; constructor() { this._something = true; } } Expected behavior: Doesn't cause an error Actual behavior: Causes an error
X Description: TypeScript Version: 2.1.4 Code class blah { private readonly _something = false; constructor() { this._something = true; } } Expected behavior: Doesn't cause an error Actual behavior: Causes an...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/13113
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Readonly vars getting typecast to \"false\" instead of \"boolean\"","articleBody":"**TypeScript Version:** 2.1.4\r\n\r\n**Code**\r\n\r\n```ts\r\nclass blah {\r\n private readonly _something = false;\r\n constructor() {\r\n this._something = true;\r\n }\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\nDoesn't cause an error\r\n\r\n**Actual behavior:**\r\nCauses an error","author":{"url":"https://github.com/deregtd","@type":"Person","name":"deregtd"},"datePublished":"2016-12-22T02:20:53Z","url":"https://github.com/microsoft/TypeScript/issues/13113"}
| 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:948288dd-4291-9f65-4eb9-f8ee4e369e82 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B3E:23880A:BB48E1:100C842:6AFBE2CD |
| html-safe-nonce | 7159a49a55c9bfa8725ed310e489f08243c3e46428e510e7850b573fa82401bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjNFOjIzODgwQTpCQjQ4RTE6MTAwQzg0Mjo2QUZCRTJDRCIsInZpc2l0b3JfaWQiOiI4NjUyODA1Nzk4MjQ3NTIzMDIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cb5372eea7034066647ec25905dfd8ac03871d35bd00c5e6541b92e0937f8f85 |
| hovercard-subject-tag | issue:197079770 |
| 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/13113/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87f136f4ec155f1a169a82a8cb1a1cd7b5aec190de655d588813b6e5c6cafaba/microsoft/TypeScript/issues/13113 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87f136f4ec155f1a169a82a8cb1a1cd7b5aec190de655d588813b6e5c6cafaba/microsoft/TypeScript/issues/13113 |
| og:image:alt | TypeScript Version: 2.1.4 Code class blah { private readonly _something = false; constructor() { this._something = true; } } Expected behavior: Doesn't cause an error Actual behavior: Causes an error |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | deregtd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 744d4381b1c4dbd6d8736c7d7e5bbe7dc11217584e457a3555020c631764e8ec |
| 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 | df859c48a4c8b4c0009c19bb4e82101aacb4b998 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width