Title: Update spec for scoping of interface member names · Issue #537 · microsoft/TypeScript · GitHub
Open Graph Title: Update spec for scoping of interface member names · Issue #537 · microsoft/TypeScript
X Title: Update spec for scoping of interface member names · Issue #537 · microsoft/TypeScript
Description: Courtesy of Dan Quirk (@danquirk) interface N { y: number; x: typeof y; // error (y is not a value) } Section 2.4 Scopes says: Note that class and enum members are never directly in scope—they can only be accessed by applying the dot (‘....
Open Graph Description: Courtesy of Dan Quirk (@danquirk) interface N { y: number; x: typeof y; // error (y is not a value) } Section 2.4 Scopes says: Note that class and enum members are never directly in scope—they can ...
X Description: Courtesy of Dan Quirk (@danquirk) interface N { y: number; x: typeof y; // error (y is not a value) } Section 2.4 Scopes says: Note that class and enum members are never directly in scope—they can ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/537
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update spec for scoping of interface member names","articleBody":"Courtesy of @danquirk \n\n```\ninterface N {\n y: number;\n x: typeof y; // error (y is not a value)\n}\n```\n\nSection 2.4 Scopes says:\n\n> Note that class and **enum** members are never directly in scope—they can only be accessed by applying the dot (‘.’) operator to a class instance or enum object. \n\nbut it means to say:\n\n> Note that class and **interface** members are never directly in scope—they can only be accessed by applying the dot (‘.’) operator to a class instance or enum object. \n","author":{"url":"https://github.com/mhegazy","@type":"Person","name":"mhegazy"},"datePublished":"2014-08-26T21:03:49Z","url":"https://github.com/microsoft/TypeScript/issues/537"}
| 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:24875e3a-fe02-fb71-3ab0-44f1bc242bab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D08:296654:8759A3:B75272:6B00E2D6 |
| html-safe-nonce | 8a5aec21e185554743a8a36923102de698e5bca617eea9f7bdfd2edea07e3c1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDA4OjI5NjY1NDo4NzU5QTM6Qjc1MjcyOjZCMDBFMkQ2IiwidmlzaXRvcl9pZCI6IjQ5MTUyMTM4MTE0NTcyNTQxMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5fb5da2ea8a8fd71710b644191c0b973c07e2477804f9232a50794e668d1ce62 |
| hovercard-subject-tag | issue:41221850 |
| 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/537/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea91617ec0eb589214aa2c0ba34bc68c58615b0defef590ec51503f94e4dbeb2/microsoft/TypeScript/issues/537 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea91617ec0eb589214aa2c0ba34bc68c58615b0defef590ec51503f94e4dbeb2/microsoft/TypeScript/issues/537 |
| og:image:alt | Courtesy of Dan Quirk (@danquirk) interface N { y: number; x: typeof y; // error (y is not a value) } Section 2.4 Scopes says: Note that class and enum members are never directly in scope—they can ... |
| 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 | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width