Title: Generic syntax ambiguity is handled incorrectly · Issue #60874 · microsoft/TypeScript · GitHub
Open Graph Title: Generic syntax ambiguity is handled incorrectly · Issue #60874 · microsoft/TypeScript
X Title: Generic syntax ambiguity is handled incorrectly · Issue #60874 · microsoft/TypeScript
Description: 🔎 Search Terms generic syntax ambiguity 🕗 Version & Regression Information I was unable to test this on prior versions because there is no online tooling for it ⏯ Playground Link https://www.typescriptlang.org/play/?#code/MYewdgzgLgBAhjA...
Open Graph Description: 🔎 Search Terms generic syntax ambiguity 🕗 Version & Regression Information I was unable to test this on prior versions because there is no online tooling for it ⏯ Playground Link https://www.typesc...
X Description: 🔎 Search Terms generic syntax ambiguity 🕗 Version & Regression Information I was unable to test this on prior versions because there is no online tooling for it ⏯ Playground Link https://www.ty...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/60874
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generic syntax ambiguity is handled incorrectly","articleBody":"### 🔎 Search Terms\n\ngeneric syntax ambiguity\n\n### 🕗 Version & Regression Information\n\n- I was unable to test this on prior versions because there is no online tooling for it\n\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play/?#code/MYewdgzgLgBAhjAvDAjAGhgIyTATB4HAZgwBMcAWDAUxwFYBuAKFEhABtqA6dkAcwAUCADxYMAwgD4YA8gDIY1AJQrmQA\n\n### 💻 Code\n\n```ts\nconst a = 1, b = 2, c = 3, d = 4, e = 5;\nconsole.log(a \u003c b, (c > (d & e)));\n```\n\n\n### 🙁 Actual behavior\n\nThis expression is not callable.\n\n### 🙂 Expected behavior\n\n`true false`\n\n### Additional information about the issue\n\nWhile there might be some justification for why\n\n```typescript\nconst a = 1, b = 2, c = 3, d = 4, e = 5;\nconsole.log(a \u003c b, c > (d & e));\n```\n\ndoesn't work as it did in JS, in the provided example there isn't even any disambiguity.","author":{"url":"https://github.com/reverofevil","@type":"Person","name":"reverofevil"},"datePublished":"2024-12-29T20:42:48Z","url":"https://github.com/microsoft/TypeScript/issues/60874"}
| 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:4129750e-69ba-15ab-e241-53e85913bb06 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B49A:21AC3F:1B134E5:2246BD5:6B0135CE |
| html-safe-nonce | 500dd4b89302f6ccc23378d9b6be9f7509aeb2b87af77029e25ab509ba4c2fa1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDlBOjIxQUMzRjoxQjEzNEU1OjIyNDZCRDU6NkIwMTM1Q0UiLCJ2aXNpdG9yX2lkIjoiNDg1NjIyMzA1ODQxNjk3MzI2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 62829cfcc47366103248715a5b738e8ebf394999aae69822aabbe5631c2b1bf8 |
| hovercard-subject-tag | issue:2762399159 |
| 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/60874/issue_layout |
| twitter:image | https://opengraph.githubassets.com/374ab49e9d9721cc09b43c43d8deb3359c0476f2e650847e769296fd7478be4c/microsoft/TypeScript/issues/60874 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/374ab49e9d9721cc09b43c43d8deb3359c0476f2e650847e769296fd7478be4c/microsoft/TypeScript/issues/60874 |
| og:image:alt | 🔎 Search Terms generic syntax ambiguity 🕗 Version & Regression Information I was unable to test this on prior versions because there is no online tooling for it ⏯ Playground Link https://www.typesc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | reverofevil |
| 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