Title: Incorrect error for parameter properties references · Issue #26719 · microsoft/TypeScript · GitHub
Open Graph Title: Incorrect error for parameter properties references · Issue #26719 · microsoft/TypeScript
X Title: Incorrect error for parameter properties references · Issue #26719 · microsoft/TypeScript
Description: class Foo { constructor(public x = 12, public y = x.toFixed()) {} } Expected behavior: No error. Actual behavior: Can't find name 'x' in the expression 'x.toFixed()'. Caused by #26317, so the fix should be an easy modification to that ne...
Open Graph Description: class Foo { constructor(public x = 12, public y = x.toFixed()) {} } Expected behavior: No error. Actual behavior: Can't find name 'x' in the expression 'x.toFixed()'. Caused by #26317, so the fix s...
X Description: class Foo { constructor(public x = 12, public y = x.toFixed()) {} } Expected behavior: No error. Actual behavior: Can't find name 'x' in the expression 'x.toFixed()'. Caused by ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/26719
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect error for parameter properties references","articleBody":"```ts\r\nclass Foo {\r\n constructor(public x = 12, public y = x.toFixed()) {}\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\nNo error.\r\n\r\n**Actual behavior:**\r\nCan't find name 'x' in the expression 'x.toFixed()'.\r\n\r\nCaused by https://github.com/Microsoft/TypeScript/pull/26317, so the fix should be an easy modification to that new code.","author":{"url":"https://github.com/sandersn","@type":"Person","name":"sandersn"},"datePublished":"2018-08-28T20:20:20Z","url":"https://github.com/microsoft/TypeScript/issues/26719"}
| 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:946b2010-4f0c-f88d-f0ea-23e199ad9856 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4A4:1A4796:432108:5E89AF:6B0470B2 |
| html-safe-nonce | 2b1328f4ab350dea035b6f2b13624c633709f8349755a196cdb99d4c4fbe65b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEE0OjFBNDc5Njo0MzIxMDg6NUU4OUFGOjZCMDQ3MEIyIiwidmlzaXRvcl9pZCI6IjEyNDM2MjkxMTU0NTQ4MTIzMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2699f418607a8263e617babbbc48bcbeb7a6c480fa58d443ec3e105ef9cc532c |
| hovercard-subject-tag | issue:354888346 |
| 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/26719/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2024a51799ba245f19b76e54c29394e06865eab5ca2ed62f09ae41f944f613d/microsoft/TypeScript/issues/26719 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2024a51799ba245f19b76e54c29394e06865eab5ca2ed62f09ae41f944f613d/microsoft/TypeScript/issues/26719 |
| og:image:alt | class Foo { constructor(public x = 12, public y = x.toFixed()) {} } Expected behavior: No error. Actual behavior: Can't find name 'x' in the expression 'x.toFixed()'. Caused by #26317, so the fix s... |
| 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 | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| 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 | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| 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