René's URL Explorer Experiment


Title: Cannot return unique symbol · Issue #32242 · microsoft/TypeScript · GitHub

Open Graph Title: Cannot return unique symbol · Issue #32242 · microsoft/TypeScript

X Title: Cannot return unique symbol · Issue #32242 · microsoft/TypeScript

Description: TypeScript Version: 3.5.1 Search Terms: function, return type, unique symbol Code const a = Symbol(); const b = Symbol(); function identity (t : T) : T { return t; } /** * Mouseover `identity(a)`, * Tooltip shows, * * ``` * function i...

Open Graph Description: TypeScript Version: 3.5.1 Search Terms: function, return type, unique symbol Code const a = Symbol(); const b = Symbol(); function identity (t : T) : T { return t; } /** * Mouseover `identity(a)...

X Description: TypeScript Version: 3.5.1 Search Terms: function, return type, unique symbol Code const a = Symbol(); const b = Symbol(); function identity<T> (t : T) : T { return t; } /** * Mouseover `ident...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/32242

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot return unique symbol","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\nfunction, return type, unique symbol\r\n\r\n**Code**\r\n\r\n```ts\r\nconst a = Symbol();\r\nconst b = Symbol();\r\n\r\nfunction identity\u003cT> (t : T) : T {\r\n  return t;\r\n}\r\n\r\n/**\r\n * Mouseover `identity(a)`,\r\n * Tooltip shows,\r\n * \r\n * ```\r\n * function identity\u003ctypeof a>(t: typeof a): typeof a\r\n * ```\r\n */\r\n/**\r\n * Expected : typeof a\r\n * \r\n * Actual   : symbol\r\n */\r\nconst actual = identity(a);\r\n/**\r\n * Error\r\n * \r\n * Type 'symbol' is not assignable to type 'unique symbol'.\r\n */\r\nconst expectA : typeof a = actual;\r\n\r\n/////////////////////////////////////////////////\r\n\r\nfunction giveTypeOfA () : typeof a {\r\n  return a;\r\n}\r\n\r\n/**\r\n * Expected : typeof a\r\n * \r\n * Actual   : symbol\r\n */\r\nconst actual2 = giveTypeOfA();\r\n/**\r\n * Error\r\n * \r\n * Type 'symbol' is not assignable to type 'unique symbol'.\r\n */\r\nconst expectA2 : typeof a = actual2;\r\n\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n`actual` and `actual2` should be `typeof a`\r\n\r\n**Actual behavior:**\r\n\r\n`actual` and `actual2` are `symbol`\r\n\r\n**Playground Link:** [Playground](http://www.typescriptlang.org/play/#code/MYewdgzgLgBAhjAvDAygTwLYCMQBsAUAlANwBQoksWSqmOBJppAZgK5jBQCW4MXAJgFMw3KGgA8AFQB8MfLABcMSYRhLJMAN6kYMAE6CorPWBhQyAXyYB6AFS2dtmAFkQrCIJAA3QXpgADAWFRNHw4Qn8AGkdlEDxuAAcYCAALEAB3CGiYJxj-fJi2Dm5eIJEuMXExBM9meGl5JWra+EImtBqQOrg8gpzrUjsHHJgAUQAPGs5BfjUzDpaekZiAQU5WOFxdOYg6PEcBimh4dc2aMpCwxiGY0b09ED0YmMkFmAByXew8d74IGDAIFgcAgEC4AHMwHAsLhBGYQPMah92FwAI6sOFfejvAB0B3I4GOgkmgk4KzmzS68BocFOuDIg2sTOZLNZbPZHM5zKYRU4PFM4K4PleNQA8sxyUQKQsqQhtLoDEYTPBLDZ7LcSdNZu1Ot1niM1kYzrolFj9v0CZQTkbcAAmGiC4ULcUrIhkG4jO4PJ7LEYiuGfPa4X5cf6A4GgiFQmFwqAI5rIsBojHJIO4-FHWDEqZQFb2nWLGl021kIA)\r\n\r\n**Related Issues:** \r\n\r\nThe very last comment of #24506 asks a question about intended behaviour but it goes unanswered.","author":{"url":"https://github.com/AnyhowStep","@type":"Person","name":"AnyhowStep"},"datePublished":"2019-07-03T21:43:43Z","url":"https://github.com/microsoft/TypeScript/issues/32242"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c1705942-f854-1a95-fa06-00b7729550a1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC772:38F59A:7A5EC3:A544BC:6B04A91A
html-safe-nonce5e2b3af1adbf12bf6927a83188f53f938926ff65d3beb2b4c3079a0e9340efc6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzcyOjM4RjU5QTo3QTVFQzM6QTU0NEJDOjZCMDRBOTFBIiwidmlzaXRvcl9pZCI6IjQ2NzI4MzMyNTkxNjI2MDk5NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac69ec607bbaaee7f34bf75f5f2c3d39e4966146b24d46f954b5f17294da58254e
hovercard-subject-tagissue:463966419
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/32242/issue_layout
twitter:imagehttps://opengraph.githubassets.com/79503bbd9cbd894f7bab09480a4cc1139aacfd1a3adcbf5bcf1f63bd4ce47137/microsoft/TypeScript/issues/32242
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/79503bbd9cbd894f7bab09480a4cc1139aacfd1a3adcbf5bcf1f63bd4ce47137/microsoft/TypeScript/issues/32242
og:image:altTypeScript Version: 3.5.1 Search Terms: function, return type, unique symbol Code const a = Symbol(); const b = Symbol(); function identity (t : T) : T { return t; } /** * Mouseover `identity(a)...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAnyhowStep
hostnamegithub.com
expected-hostnamegithub.com
None188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release557cfbac6cdb532730c95c90f2cefdc0c4128029
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/32242#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F32242
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F32242
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/32242
Reloadhttps://github.com/microsoft/TypeScript/issues/32242
Reloadhttps://github.com/microsoft/TypeScript/issues/32242
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests318 (318)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/32242
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/32242
Cannot return unique symbolhttps://github.com/microsoft/TypeScript/issues/32242#top
Working as Intendedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Jul 3, 2019https://github.com/microsoft/TypeScript/issues/32242#issue-463966419
Playgroundhttp://www.typescriptlang.org/play/#code/MYewdgzgLgBAhjAvDAygTwLYCMQBsAUAlANwBQoksWSqmOBJppAZgK5jBQCW4MXAJgFMw3KGgA8AFQB8MfLABcMSYRhLJMAN6kYMAE6CorPWBhQyAXyYB6AFS2dtmAFkQrCIJAA3QXpgADAWFRNHw4Qn8AGkdlEDxuAAcYCAALEAB3CGiYJxj-fJi2Dm5eIJEuMXExBM9meGl5JWra+EImtBqQOrg8gpzrUjsHHJgAUQAPGs5BfjUzDpaekZiAQU5WOFxdOYg6PEcBimh4dc2aMpCwxiGY0b09ED0YmMkFmAByXew8d74IGDAIFgcAgEC4AHMwHAsLhBGYQPMah92FwAI6sOFfejvAB0B3I4GOgkmgk4KzmzS68BocFOuDIg2sTOZLNZbPZHM5zKYRU4PFM4K4PleNQA8sxyUQKQsqQhtLoDEYTPBLDZ7LcSdNZu1Ot1niM1kYzrolFj9v0CZQTkbcAAmGiC4ULcUrIhkG4jO4PJ7LEYiuGfPa4X5cf6A4GgiFQmFwqAI5rIsBojHJIO4-FHWDEqZQFb2nWLGl021kIA
#24506https://github.com/microsoft/TypeScript/issues/24506
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Jul 3, 2019https://github.com/microsoft/TypeScript/issues/32242#issuecomment-508266857
Playgroundhttp://www.typescriptlang.org/play/#code/MYewdgzgLgBAhjAvDAygTwLYCMQBsAUAlANwBQpAZgK5jBQCW4MA5vQG4CmAKmgA4cB5CgEEYRGAC4YAbxgB3EACcA1nEUgaAE0kwofDiArwYAXxmkYMRRyhVFYGfKWr1WnQhNkT5APQAqPws-GABRAA9+Og5tKVkFFTUNMBjdfUNjbxhgoJhhOio4XEsdOOdEtyk9fnSPIJ9SUEhYOHzCgCYkFnZufSFhIjJ-QKzciAh6ZjAMDjBYAQBpAEI6hvBoGA4IjjphDsq0owRkFtt2gDp4lyTNMiA
Playgroundhttp://www.typescriptlang.org/play/#code/MYewdgzgLgBAhjAvDAygTwLYCMQBsAUAlANwBQpAZgK5jBQCW4MA5vQG4CmAKmgA4cB5CgEEYRGAC4YAbSh8OICvAC6MAN6kYMAE4coVbWBlxlZAL7kA9ACprm6zACiAD350OAE0ky5-RSvsYQOE6KjhcLW9ZeX8Te0tSUEhYOFDwgCYkFnZueSFhIjIbOxgHYQgIemYwDA4wWAEAaQBCeMTwaBgOVw46YUypXwUlBGRU-QzpAAZTUiA
Playgroundhttp://www.typescriptlang.org/play/#code/MYewdgzgLgBAhjAvDAygTwLYCMQBsAUAlANwBQpAZgK5jBQCW4MA5vQG4CmAKmgA4cB5CgEEYRGAC4YAbSh8OICvAC6MAN6kYMAE4coVbWBlxlZAL7kA9ACprm6zACiAD350OAE0kw5-RfHsYQOE6KjhcLW8ITBxce0tSUEhYOFDwgCYkFnZueSFhImkABlNSGzsYB2EICHpmMAwOMFgAORAU3FwQAHdPeMTwaBgOVw46YUypXwUlBGRU-QyyIA
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Working as Intendedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
on Jul 26, 2019https://github.com/microsoft/TypeScript/issues/32242#event-2513233942
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 26, 2019https://github.com/microsoft/TypeScript/issues/32242#issuecomment-515536176
https://github.com/AnyhowStep
AnyhowStephttps://github.com/AnyhowStep
on Jul 26, 2019https://github.com/microsoft/TypeScript/issues/32242#issuecomment-515539698
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
on Jul 28, 2019https://github.com/microsoft/TypeScript/issues/32242#issuecomment-515790557
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 28, 2019https://github.com/microsoft/TypeScript/issues/32242#event-2514891606
https://github.com/artalar
Arutyunyan Artyom (artalar)https://github.com/artalar
on Aug 15, 2019https://github.com/microsoft/TypeScript/issues/32242#issuecomment-521685805
https://github.com/coreh
Marco Buono (coreh)https://github.com/coreh
on Feb 20, 2020https://github.com/microsoft/TypeScript/issues/32242#issuecomment-589068090
AnyhowStephttps://github.com/AnyhowStep
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Feb 20, 2020https://github.com/microsoft/TypeScript/issues/32242#issuecomment-589244779
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/32242#event-20416718215
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/32242
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/32242
Working as Intendedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.