Title: Late bindable index signatures on classes vs `override` and `noImplicitOverride ` · Issue #60637 · microsoft/TypeScript · GitHub
Open Graph Title: Late bindable index signatures on classes vs `override` and `noImplicitOverride ` · Issue #60637 · microsoft/TypeScript
X Title: Late bindable index signatures on classes vs `override` and `noImplicitOverride ` · Issue #60637 · microsoft/TypeScript
Description: 🔎 Search Terms override ambient type declaration class dts noImplicitOverride late bindable index signatures 🕗 Version & Regression Information This changed in commit or PR: #59860 ⏯ Playground Link https://www.typescriptlang.org/play/?n...
Open Graph Description: 🔎 Search Terms override ambient type declaration class dts noImplicitOverride late bindable index signatures 🕗 Version & Regression Information This changed in commit or PR: #59860 ⏯ Playground Lin...
X Description: 🔎 Search Terms override ambient type declaration class dts noImplicitOverride late bindable index signatures 🕗 Version & Regression Information This changed in commit or PR: #59860 ⏯ Playground...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/60637
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Late bindable index signatures on classes vs `override` and `noImplicitOverride `","articleBody":"### 🔎 Search Terms\n\noverride ambient type declaration class dts noImplicitOverride late bindable index signatures\n\n### 🕗 Version & Regression Information\n\n- This changed in commit or PR: https://github.com/microsoft/TypeScript/pull/59860\n\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play/?noImplicitOverride=true&ts=5.8.0-dev.20241128#code/PTAEAEDsHsEkFsAOAbAlgY1QFwPIDcBTAJyNQBMCAuULIgVwIChH1pIBnLUdgT3mt7wARtGSgAvKADKfEcgAUASgDczdMgCG7dqABCWggEZQAb0ahQAbUEBdJaYC+jJy03bQAEWKpCZYwQAPLAJIMh19diNTc1BoQhJyAitbexMnF3UtcIMAJmiLaz47RUdnNTcdL1JfPMDg0OzIvLMClJK0stcsvQMAZlKu9yqfAjJ+upCwnsj+ltj40gpkotT0oA\n\n### 💻 Code\n\n```ts\n// @noImplicitOverride: true\n\nconst sym: symbol = Symbol();\n\nclass Base1 {\n [sym]() {}\n}\n\nclass Derived1 extends Base1 {\n override [sym]() {}\n}\n\nclass Base2 {\n [sym]() {}\n}\n\nclass Derived2 extends Base2 {\n [sym]() {}\n}\n\nclass Base3 {}\n\nclass Derived3 extends Base3 {\n override [sym]() {}\n}\n```\n\n\n### 🙁 Actual behavior\n\nNo errors are raised\n\n### 🙂 Expected behavior\n\nI'd expect either:\n- errors on `override` with dynamic names\n- errors raised on override members without `override` under `noImplicitOverride`\n\n\n\n### Additional information about the issue\n\nI implemented the first suggestion here https://github.com/microsoft/TypeScript/commit/f33497877dd6b723e4d9169a431c58083556dae9 but since I don't know if this is the desired behavior I didn't open a PR with this change yet, cc @weswigham ","author":{"url":"https://github.com/Andarist","@type":"Person","name":"Andarist"},"datePublished":"2024-11-28T23:21:07Z","url":"https://github.com/microsoft/TypeScript/issues/60637"}
| 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:c92b848e-b48d-420d-0f52-4a7f40af9305 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E328:1CFF11:5914C1:7A82F8:6B04A29E |
| html-safe-nonce | 98b3aa1925782525127608bf59db2e213deb30d1b1884a4fbe194ad577db2832 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzI4OjFDRkYxMTo1OTE0QzE6N0E4MkY4OjZCMDRBMjlFIiwidmlzaXRvcl9pZCI6IjY0NjcyMzExMjg5NzY5MjUzNDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a67c1edff3ce233b2086e795ef048ef3f892cab542cad957c840356fc0650113 |
| hovercard-subject-tag | issue:2703457674 |
| 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/60637/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49a2073d5fd938549f01cdec60395d2c5a1274cfed70fb7841df35a7b4e91b58/microsoft/TypeScript/issues/60637 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49a2073d5fd938549f01cdec60395d2c5a1274cfed70fb7841df35a7b4e91b58/microsoft/TypeScript/issues/60637 |
| og:image:alt | 🔎 Search Terms override ambient type declaration class dts noImplicitOverride late bindable index signatures 🕗 Version & Regression Information This changed in commit or PR: #59860 ⏯ Playground Lin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Andarist |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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