Title: StrictPropertyInitialization does not understand calls to helpers · Issue #21132 · microsoft/TypeScript · GitHub
Open Graph Title: StrictPropertyInitialization does not understand calls to helpers · Issue #21132 · microsoft/TypeScript
X Title: StrictPropertyInitialization does not understand calls to helpers · Issue #21132 · microsoft/TypeScript
Description: TypeScript Version: 2.7.0-dev.20180110 Code export class Test { private _foo: string; constructor() { this._init(); } private _init() { this._foo = 'test'; } } https://github.com/berickson1/Playground/blob/master/strictPropertyInitError....
Open Graph Description: TypeScript Version: 2.7.0-dev.20180110 Code export class Test { private _foo: string; constructor() { this._init(); } private _init() { this._foo = 'test'; } } https://github.com/berickson1/Playgro...
X Description: TypeScript Version: 2.7.0-dev.20180110 Code export class Test { private _foo: string; constructor() { this._init(); } private _init() { this._foo = 'test'; } } https://github.com/berickson1...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/21132
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"StrictPropertyInitialization does not understand calls to helpers","articleBody":"\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** 2.7.0-dev.20180110\r\n\r\n**Code**\r\n\r\n```ts\r\nexport class Test {\r\n private _foo: string;\r\n constructor() {\r\n this._init();\r\n }\r\n\r\n private _init() {\r\n this._foo = 'test';\r\n }\r\n}\r\n```\r\nhttps://github.com/berickson1/Playground/blob/master/strictPropertyInitError.ts\r\n\r\n**Expected behavior:**\r\nCode compiles with strict flags on\r\n\r\n**Actual behavior:**\r\nstrictPropertyInitError.ts(4,13): error TS2564: Property '_foo' has no initializer and is not definitely assigned in the constructor.\r\n","author":{"url":"https://github.com/berickson1","@type":"Person","name":"berickson1"},"datePublished":"2018-01-10T22:12:35Z","url":"https://github.com/microsoft/TypeScript/issues/21132"}
| 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:3bb0e248-87fb-4ab6-d641-145dd12945f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0D8:2E7EBB:60EFA1:7C20F7:6B00DCFE |
| html-safe-nonce | 1d8d09f80dc823b2bfbd5c1bbdfaef4a4070eda7c0fe833684d6b60b0b791ee5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEQ4OjJFN0VCQjo2MEVGQTE6N0MyMEY3OjZCMDBEQ0ZFIiwidmlzaXRvcl9pZCI6Ijg2MjM3MTg1NTMxNDI0ODQyMjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ecb9ae901bd00d3979e1a7df963e5c3fc678d93a60fc8ccd298473aa9c8eb548 |
| hovercard-subject-tag | issue:287595464 |
| 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/21132/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7fea77887c52a2c778ae56669e228c537140e62abb96ab675bf73105366c912d/microsoft/TypeScript/issues/21132 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7fea77887c52a2c778ae56669e228c537140e62abb96ab675bf73105366c912d/microsoft/TypeScript/issues/21132 |
| og:image:alt | TypeScript Version: 2.7.0-dev.20180110 Code export class Test { private _foo: string; constructor() { this._init(); } private _init() { this._foo = 'test'; } } https://github.com/berickson1/Playgro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | berickson1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| 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 | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width