Title: Private/Protected class members not accessible in nested classes · Issue #7058 · microsoft/TypeScript · GitHub
Open Graph Title: Private/Protected class members not accessible in nested classes · Issue #7058 · microsoft/TypeScript
X Title: Private/Protected class members not accessible in nested classes · Issue #7058 · microsoft/TypeScript
Description: class B { private x; method() { class C { method() { new B().x; // x is not accessible here } } } }
Open Graph Description: class B { private x; method() { class C { method() { new B().x; // x is not accessible here } } } }
X Description: class B { private x; method() { class C { method() { new B().x; // x is not accessible here } } } }
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7058
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Private/Protected class members not accessible in nested classes","articleBody":"``` ts\nclass B {\n private x;\n\n method() {\n class C {\n method() {\n new B().x; // x is not accessible here\n\n }\n }\n }\n}\n```\n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2016-02-12T20:03:46Z","url":"https://github.com/microsoft/TypeScript/issues/7058"}
| 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:25530d1f-e4b8-cabc-6a86-4e7548cd7bd4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D468:19AA62:8F2CEB:B7BEC8:6B00EC9E |
| html-safe-nonce | 2d6ec8e6b3dc78cb7a5cd5d0300bcb85e22547098e940d066089816ef9fd27e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDY4OjE5QUE2Mjo4RjJDRUI6QjdCRUM4OjZCMDBFQzlFIiwidmlzaXRvcl9pZCI6IjkwNDExOTU4MTI0Njk2NjQ5MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6ddb63bba4646164b239204452a16ae149582e8e59ddcce7712bb90485cae6b1 |
| hovercard-subject-tag | issue:133330781 |
| 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/7058/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76dfd1276936c1aaf03e3498833a735856d777ee71894e4bc5fe7a2f1022b79e/microsoft/TypeScript/issues/7058 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76dfd1276936c1aaf03e3498833a735856d777ee71894e4bc5fe7a2f1022b79e/microsoft/TypeScript/issues/7058 |
| og:image:alt | class B { private x; method() { class C { method() { new B().x; // x is not accessible here } } } } |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mhegazy |
| 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