Title: Salsa unreachable code detected is not so smart · Issue #6665 · microsoft/TypeScript · GitHub
Open Graph Title: Salsa unreachable code detected is not so smart · Issue #6665 · microsoft/TypeScript
X Title: Salsa unreachable code detected is not so smart · Issue #6665 · microsoft/TypeScript
Description: From alexandrudima on January 27, 2016 10:45 Testing #2218 function xx() { if (true) { return 5; } else { return '5'; } } This shows a squiggly on the second return saying 'Unreachable code detected'. The following or any other const exp...
Open Graph Description: From alexandrudima on January 27, 2016 10:45 Testing #2218 function xx() { if (true) { return 5; } else { return '5'; } } This shows a squiggly on the second return saying 'Unreachable code detecte...
X Description: From alexandrudima on January 27, 2016 10:45 Testing #2218 function xx() { if (true) { return 5; } else { return '5'; } } This shows a squiggly on the second return saying 'Unreachable ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/6665
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Salsa unreachable code detected is not so smart","articleBody":"_From @alexandrudima on January 27, 2016 10:45_\n\nTesting #2218 \n\n``` javascript\nfunction xx() {\n if (true) {\n return 5;\n } else {\n return '5';\n }\n}\n```\n\nThis shows a squiggly on the second return saying 'Unreachable code detected'.\n\nThe following or any other const expression does not:\n\n``` javascript\nfunction xx() {\n if (true || true) {\n return 5;\n } else {\n return '5';\n }\n}\n```\n\nsame with `if (!false)` or `if (!true)`, etc.\n\n_Copied from original issue: Microsoft/vscode#2430_\n","author":{"url":"https://github.com/egamma","@type":"Person","name":"egamma"},"datePublished":"2016-01-27T18:37:39Z","url":"https://github.com/microsoft/TypeScript/issues/6665"}
| 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:b91baa98-c712-5381-8780-7130486b2b0f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8550:240CD1:1B92BD3:230A527:6B0154B7 |
| html-safe-nonce | 50be188a4dfb887f5f52428814d1791d982c1a0fd66eef4565c592bf5b162d43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTUwOjI0MENEMToxQjkyQkQzOjIzMEE1Mjc6NkIwMTU0QjciLCJ2aXNpdG9yX2lkIjoiNTgzNDUzMzc0MTM0Njc3MjE1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c64f2cf1dc42be182e1bc677e51c8c6e1b0b4aaf7c86914bef58349f6c0442ae |
| hovercard-subject-tag | issue:129230653 |
| 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/6665/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b7e6d89e26c4a6a8b8000d6d6d49373d5bfa362f5bf52609458b12ec2b918556/microsoft/TypeScript/issues/6665 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b7e6d89e26c4a6a8b8000d6d6d49373d5bfa362f5bf52609458b12ec2b918556/microsoft/TypeScript/issues/6665 |
| og:image:alt | From alexandrudima on January 27, 2016 10:45 Testing #2218 function xx() { if (true) { return 5; } else { return '5'; } } This shows a squiggly on the second return saying 'Unreachable code detecte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | egamma |
| 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