Title: Error elaborations should not be de-duped · Issue #33143 · microsoft/TypeScript · GitHub
Open Graph Title: Error elaborations should not be de-duped · Issue #33143 · microsoft/TypeScript
X Title: Error elaborations should not be de-duped · Issue #33143 · microsoft/TypeScript
Description: TypeScript Version: 3.5.1 Search Terms: Error message different Code interface ExprData { mapper : () => unknown, blah : string, } interface Expr
Open Graph Description: TypeScript Version: 3.5.1 Search Terms: Error message different Code interface ExprData { mapper : () => unknown, blah : string, } interface Expr
X Description: TypeScript Version: 3.5.1 Search Terms: Error message different Code interface ExprData { mapper : () => unknown, blah : string, } interface Expr<DataT extends ExprData> { mapper : DataT[&...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/33143
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error elaborations should not be de-duped","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** 3.5.1\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\n\r\n+ Error message different\r\n\r\n**Code**\r\n\r\n```ts\r\ninterface ExprData {\r\n mapper : () => unknown,\r\n blah : string,\r\n}\r\ninterface Expr\u003cDataT extends ExprData> {\r\n mapper : DataT[\"mapper\"],\r\n blah : DataT[\"blah\"],\r\n\r\n extra : number,\r\n}\r\n\r\ndeclare function where (\r\n callback : () => Expr\u003c{\r\n mapper : () => boolean,\r\n blah : string,\r\n }>\r\n) : void;\r\n\r\ndeclare function getInvalidWhere () : Expr\u003c{\r\n mapper : () => (boolean|null),\r\n blah : string,\r\n}>;\r\n\r\n/*\r\nType 'Expr\u003c{ mapper: () => boolean | null; blah: string; }>' is not assignable to type 'Expr\u003c{ mapper: () => boolean; blah: string; }>'.\r\n Type '{ mapper: () => boolean | null; blah: string; }' is not assignable to type '{ mapper: () => boolean; blah: string; }'.\r\n Types of property 'mapper' are incompatible.\r\n Type '() => boolean | null' is not assignable to type '() => boolean'.\r\n Type 'boolean | null' is not assignable to type 'boolean'.\r\n Type 'null' is not assignable to type 'boolean'.\r\n*/\r\nwhere(() => getInvalidWhere())\r\n/*\r\n Expected: Same error as above,\r\n Actual:\r\n Type 'Expr\u003c{ mapper: () => boolean | null; blah: string; }>' is not assignable to type\r\n 'Expr\u003c{ mapper: () => boolean; blah: string; }>'.\r\n*/\r\nwhere(() => getInvalidWhere())\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n+ Both errors should have the same error message, if they're in the same file.\r\n+ Both errors should have the same error message, if they're in **different** files.\r\n\r\n**Actual behavior:**\r\n\r\n+ Both errors have different error messages in the same file.\r\n+ Both errors have different error messages in **different** files.\r\n\r\n**Playground Link:** \r\n\r\n[Playground](http://www.typescriptlang.org/play/#code/JYOwLgpgTgZghgYwgAgKIA8AOUAicxzIDeAUMsgLZyabTIBcyAFAJTIC8AfMgK4gDWIAPYB3EABoyyAEYAbOAAsGyAM5gooAOaSAviVCRYiFBmwAePAQAqyCOkggAJirRZc+ON1LkqNOo0s4KwBtACJfWihQgF1JcjlFZUCQ0ISFGMkpO3VCRhAeCmloXRISRwgEeSgUGD4EMGAhEGQRBWgUJikEOFlZaUR+ZVYOblMoM29ySmpIobYuGSEhWQg4CSl4+SVGNQ0QbSkdThI2RgA3IWBHAG5S8sq4auRakHrG5s0IMABJEDOeq4AdTaT2GjDGEykEX8zHm3CY0iWKzWAB98r0WHEZFtlLstLpOLcSAB6ABUJCsAE9aMgAOQQojTPxQRjDBaI5arZoo5Do2TXbGKHbqLQCo605DAFzCMDIOAqFTATQgOByFBgITIMDUlD0twTJmRVlwxactYCtLCvaaMWcWkAOikVJptMZ0JZsJGpuR3N5PF6Fq2VtFyB0EqlvKEsvliuVqpWWs12pdbpm0GNXo5PsDQtUIv2YodG2QzogLiEMGQ2CEkW1dPdEseKFACCEFEw+GAasdUympbpbO4Wa5yB5fPD0qjcoVSpVasTWp1A5Nw7WRd7vf7tNXvvHksn0ZncfnGsXLp3643m6XtL3EZl09jc4Tp+TuovjtJxJIrXaTEHyCfD8fwAo4wJ-iwLAkuS5CmBUkCOIwADKcAUCg0BQEIUDTnKiJnBAWIAIL1DwPT0MWW4Moa6aeuySIjmO-r8oKCjBgWoZ2vukaHk+8bqkmOrFnq5ipsyGZ0WaIA5qxebWraRZfj+IIQP+JpAb8-yyECymsCwQA)\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\n","author":{"url":"https://github.com/AnyhowStep","@type":"Person","name":"AnyhowStep"},"datePublished":"2019-08-29T19:49:39Z","url":"https://github.com/microsoft/TypeScript/issues/33143"}
| 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:cec9ec1c-ed83-0eff-54d1-194bb059ef49 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C360:CC1A4:2D16A6A:39594EF:6B01B50E |
| html-safe-nonce | a34bbbbbf9a4a9a69732e6972a7eb63e7e8c8c43f3fb0f859e75ee9e7932717e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzYwOkNDMUE0OjJEMTZBNkE6Mzk1OTRFRjo2QjAxQjUwRSIsInZpc2l0b3JfaWQiOiIyMjQyMTEwMDEyNzc4NDYwNDMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e19bfee4fa8e6a48e00fb1677367b975e442de8c4a3cc09c27f6678014fd4de5 |
| hovercard-subject-tag | issue:487144958 |
| 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/33143/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14e78a19acdd8fcaeb5d83dcee50e320edb426314fda2e49b91b1ba3fc9f3690/microsoft/TypeScript/issues/33143 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14e78a19acdd8fcaeb5d83dcee50e320edb426314fda2e49b91b1ba3fc9f3690/microsoft/TypeScript/issues/33143 |
| og:image:alt | TypeScript Version: 3.5.1 Search Terms: Error message different Code interface ExprData { mapper : () => unknown, blah : string, } interface Expr |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AnyhowStep |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width