Title: Duplicate diagnostics · Issue #58207 · microsoft/TypeScript · GitHub
Open Graph Title: Duplicate diagnostics · Issue #58207 · microsoft/TypeScript
X Title: Duplicate diagnostics · Issue #58207 · microsoft/TypeScript
Description: 🔎 Search Terms duplicate diagnostics, duplicate errors 🕗 Version & Regression Information This is the behavior in every version I tried ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.5.0-dev.20240415#code/JYOwLgpgTgZghgYwgAgM...
Open Graph Description: 🔎 Search Terms duplicate diagnostics, duplicate errors 🕗 Version & Regression Information This is the behavior in every version I tried ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.5....
X Description: 🔎 Search Terms duplicate diagnostics, duplicate errors 🕗 Version & Regression Information This is the behavior in every version I tried ⏯ Playground Link https://www.typescriptlang.org/play?ts=...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/58207
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Duplicate diagnostics","articleBody":"### 🔎 Search Terms\n\nduplicate diagnostics, duplicate errors\n\n### 🕗 Version & Regression Information\n\n- This is the behavior in every version I tried\r\n\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play?ts=5.5.0-dev.20240415#code/JYOwLgpgTgZghgYwgAgMIHsC2AHANsBOSAEwBUBPbCAITgGcUBvAKGTeQG06AuZOsKKADmAXV4BBWgwDczAL7NQkWIhQYc+QiQpUAItGAA3CMWQt2nHnwHCxycfsHHishUujwk9qU1bs4vPyCIEKuiuAeqvaORiZmfmwARoE2IWEIuPR0yD7xFjDo6ACEvOp4BEQmOjT0EOnoIPzIAB7IALzIGVnIMc7IEM2QIMTZuebsBcWlWOVaVZQQvSZhuBBgyOiJAFa8jMgAzCnBQshy7WYHvABEYAAWUBAQV6eym1sczSLSQA\n\n### 💻 Code\n\n```ts\r\ninterface ComplicatedTypeBase {\r\n [s: string]: ABase;\r\n}\r\ninterface ComplicatedTypeDerived {\r\n [s: string]: ADerived;\r\n}\r\ninterface ABase {\r\n a: string;\r\n}\r\ninterface ADerived {\r\n b: string;\r\n}\r\nclass Base {\r\n foo!: ComplicatedTypeBase;\r\n}\r\nconst x = class Derived extends Base {\r\n foo!: ComplicatedTypeDerived;\r\n}\r\nlet obj: { 3: string } = { 3: \"three\" };\r\nobj[x];\r\n```\r\n\n\n### 🙁 Actual behavior\n\nTwo instances of the same error on line `foo!: ComplicatedTypeDerived;`:\r\n- `Property 'foo' in type 'Derived' is not assignable to the same property in base type 'Base'.\r\n Type 'ComplicatedTypeDerived' is not assignable to type 'ComplicatedTypeBase'.(2416)`\r\n- `Property 'foo' in type 'Derived' is not assignable to the same property in base type 'Base'.\r\n Type 'ComplicatedTypeDerived' is not assignable to type 'ComplicatedTypeBase'.\r\n 'string' index signatures are incompatible.\r\n Property 'a' is missing in type 'ADerived' but required in type 'ABase'.(2416)`\n\n### 🙂 Expected behavior\n\nA single instance of the error\n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/gabritto","@type":"Person","name":"gabritto"},"datePublished":"2024-04-15T22:45:58Z","url":"https://github.com/microsoft/TypeScript/issues/58207"}
| 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:bfadffe1-68f0-1ffd-490e-ae1ed67f44fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88D6:62F48:21C94B:2CA10A:6B01BCAF |
| html-safe-nonce | 2238f486fe2b465f68b93e15d8b84258795ae5184d61d10a3ebd77539b4af24d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEQ2OjYyRjQ4OjIxQzk0QjoyQ0ExMEE6NkIwMUJDQUYiLCJ2aXNpdG9yX2lkIjoiMTUzNzYxNjM3MTI4MDYyNDgxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d6433609b3bf69d6daa31eab1f73d0a556d31e150cef683409f685c14424df70 |
| hovercard-subject-tag | issue:2244759464 |
| 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/58207/issue_layout |
| twitter:image | https://opengraph.githubassets.com/48953d3227e3d13d6f32df40266ce090ed588a1a816d616cb82ce3134d381bbe/microsoft/TypeScript/issues/58207 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/48953d3227e3d13d6f32df40266ce090ed588a1a816d616cb82ce3134d381bbe/microsoft/TypeScript/issues/58207 |
| og:image:alt | 🔎 Search Terms duplicate diagnostics, duplicate errors 🕗 Version & Regression Information This is the behavior in every version I tried ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.5.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gabritto |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width