René's URL Explorer Experiment


Title: Symbols in const assertions should be considered unique · Issue #35562 · microsoft/TypeScript · GitHub

Open Graph Title: Symbols in const assertions should be considered unique · Issue #35562 · microsoft/TypeScript

X Title: Symbols in const assertions should be considered unique · Issue #35562 · microsoft/TypeScript

Description: TypeScript Version: 3.8.0-dev.20191205 Search Terms: const assertion unique symbol "unique symbol" "as const" Code const prop = Symbol() const dictionary = { prop: Symbol() } const sealedDictionary = { prop: Symbol() } as const class MyC...

Open Graph Description: TypeScript Version: 3.8.0-dev.20191205 Search Terms: const assertion unique symbol "unique symbol" "as const" Code const prop = Symbol() const dictionary = { prop: Symbol() } const sealedDictionary...

X Description: TypeScript Version: 3.8.0-dev.20191205 Search Terms: const assertion unique symbol "unique symbol" "as const" Code const prop = Symbol() const dictionary = { prop: Symbol() } co...

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

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":"Symbols in const assertions should be considered unique","articleBody":"**TypeScript Version:**  3.8.0-dev.20191205\r\n\r\n**Search Terms:**\r\n- const assertion unique symbol\r\n- \"unique symbol\" \"as const\"\r\n\r\n**Code**\r\n\r\n```ts\r\nconst prop = Symbol()\r\nconst dictionary = {\r\n  prop: Symbol()\r\n}\r\nconst sealedDictionary = {\r\n  prop: Symbol()\r\n} as const\r\n\r\nclass MyClass {\r\n  // Works because \"prop\" is a unique symbol\r\n  [prop]: 1\r\n\r\n  // Does not work because \"dictionary.prop\" is not a unique symbol\r\n  [dictionary.prop]: 2\r\n\r\n  // Does not work because \"sealedDictionary.prop\" is not a unique symbol,\r\n  // even though it probably should be?\r\n  [sealedDictionary.prop]: 3\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n`MyClass` should probably accept `sealedDictionary.prop` as a computed property name since it should be considered a unique symbol.\r\n\r\n**Actual behavior:**\r\n\r\nTypeScript complains with TS1166:\r\n\r\n> A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type.\r\n\r\n**Playground Link:** ~[Provided](https://www.typescriptlang.org/play/?target=99&ts=3.8.0-dev.20191205#code/MYewdgzgLgBADgJxHGBeGBlAngWwEYgA2AFAJQCwAUKJLACYCWwUD4AhglmjAN5UzwkcAFyZcBEhUoBfKjWgwIAUzaEldACJMW7Ttz6UBiZKOz4iZKtJhsIMeVCpzCtuwFksAYRcQ7BgQD0ATAA6iAIANZ2eErAbACuyjAARMZwyTAMdmww8WAMAI7xSoriRPwwANppALqiAIxOhjBBMBogSnZgILAA7uERMDFxiSXJjMysYBxYAHRpGVkw3bA5eYXFpeaEFZUTOtOc80J1MABMTYHB7Z3LPTD9kUOxCUnJyqrqWpO6cwuZXXua3yRRKEDKhAANBVWkoAG5KMAwKAACxA8QA5ijMrBjHg2HhCFwIGj4oQ6M8APy7D5qTTaKYzY7IU4AZisQA)~ [Updated](https://www.typescriptlang.org/play?ts=3.8.2#code/MYewdgzgLgBADgJxHGBeGBlAngWwEYgA2AFAJQCwAUKJLACYCWwUD4AhglmjAN5UzwkcAFyZcBEhUoBfKjWgwIAUzaEldACJMW7Ttz6UBiZKOz4iZKtJhsIMeVCpzCtuwFksAYRcQ7BgQD0ATAA6iAIANZ2eErAbACuyjAARMZwyTAMdmww8WAMAI7xSoriRPwwANppALqiAIxOhjBBMBogSnZgILAA7uERMDFxiSXJjMysYBxYAHRpGVkw3bA5eYXFpeaEFZUTOtOc80J1MABMTYHB7Z3LPTD9kUOxCUnJyqrqWpO6cwuZXXua3yRRKEDKhAANBVWkoAG5KMAwKAACxA8QA5ijMrBjHg2HhCFwIGj4oQ6M8APy7D5qTTaKYzY7IU4AZisQA) (old link seems to be broken in new playground)\r\n\r\n**Related Issues:** —\r\n","author":{"url":"https://github.com/loilo","@type":"Person","name":"loilo"},"datePublished":"2019-12-07T00:25:30Z","url":"https://github.com/microsoft/TypeScript/issues/35562"}

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:0d6afd47-be24-843f-cc33-608554a485cd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCEC0:46A3B:6E43EB:96D37C:6B047808
html-safe-noncedea72ee5f546071a839533b43cc7418a406e2547f08506df9223dbd2d55e4e1d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUMwOjQ2QTNCOjZFNDNFQjo5NkQzN0M6NkIwNDc4MDgiLCJ2aXNpdG9yX2lkIjoiMzAwMTkxNTc1OTIzNzgyMjQ3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac45aa542cabf203498cf1671125fe4b391d934905859799829e928a33349c97e7
hovercard-subject-tagissue:534319905
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/35562/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1176cb8017bee9ee2e44847dcdf17c567defcd4f88d5fe49372b5a2518737ae3/microsoft/TypeScript/issues/35562
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1176cb8017bee9ee2e44847dcdf17c567defcd4f88d5fe49372b5a2518737ae3/microsoft/TypeScript/issues/35562
og:image:altTypeScript Version: 3.8.0-dev.20191205 Search Terms: const assertion unique symbol "unique symbol" "as const" Code const prop = Symbol() const dictionary = { prop: Symbol() } const sealedDictionary...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameloilo
hostnamegithub.com
expected-hostnamegithub.com
None9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b
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
releasecf73f57448d52b3a7b619195e182b33d3b3454ca
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/35562#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F35562
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%2F35562
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/35562
Reloadhttps://github.com/microsoft/TypeScript/issues/35562
Reloadhttps://github.com/microsoft/TypeScript/issues/35562
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests320 (320)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/35562
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/35562
Symbols in const assertions should be considered uniquehttps://github.com/microsoft/TypeScript/issues/35562#top
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featurehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Awaiting%20More%20Feedback%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/loilo
Florian Reuschel (loilo)https://github.com/loilo
on Dec 7, 2019https://github.com/microsoft/TypeScript/issues/35562#issue-534319905
Providedhttps://www.typescriptlang.org/play/?target=99&ts=3.8.0-dev.20191205#code/MYewdgzgLgBADgJxHGBeGBlAngWwEYgA2AFAJQCwAUKJLACYCWwUD4AhglmjAN5UzwkcAFyZcBEhUoBfKjWgwIAUzaEldACJMW7Ttz6UBiZKOz4iZKtJhsIMeVCpzCtuwFksAYRcQ7BgQD0ATAA6iAIANZ2eErAbACuyjAARMZwyTAMdmww8WAMAI7xSoriRPwwANppALqiAIxOhjBBMBogSnZgILAA7uERMDFxiSXJjMysYBxYAHRpGVkw3bA5eYXFpeaEFZUTOtOc80J1MABMTYHB7Z3LPTD9kUOxCUnJyqrqWpO6cwuZXXua3yRRKEDKhAANBVWkoAG5KMAwKAACxA8QA5ijMrBjHg2HhCFwIGj4oQ6M8APy7D5qTTaKYzY7IU4AZisQA
Updatedhttps://www.typescriptlang.org/play?ts=3.8.2#code/MYewdgzgLgBADgJxHGBeGBlAngWwEYgA2AFAJQCwAUKJLACYCWwUD4AhglmjAN5UzwkcAFyZcBEhUoBfKjWgwIAUzaEldACJMW7Ttz6UBiZKOz4iZKtJhsIMeVCpzCtuwFksAYRcQ7BgQD0ATAA6iAIANZ2eErAbACuyjAARMZwyTAMdmww8WAMAI7xSoriRPwwANppALqiAIxOhjBBMBogSnZgILAA7uERMDFxiSXJjMysYBxYAHRpGVkw3bA5eYXFpeaEFZUTOtOc80J1MABMTYHB7Z3LPTD9kUOxCUnJyqrqWpO6cwuZXXua3yRRKEDKhAANBVWkoAG5KMAwKAACxA8QA5ijMrBjHg2HhCFwIGj4oQ6M8APy7D5qTTaKYzY7IU4AZisQA
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featurehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Awaiting%20More%20Feedback%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Jan 24, 2020https://github.com/microsoft/TypeScript/issues/35562#event-2978096372
https://github.com/LANGERGabrielle
Gabrielle Langer (LANGERGabrielle)https://github.com/LANGERGabrielle
on Sep 21, 2020https://github.com/microsoft/TypeScript/issues/35562#issuecomment-696172996
Playgroundhttps://www.typescriptlang.org/play#code/MYewdgzgLgBAhjAvDAygTwLYCMQBsAUAlANwBQUaADgKYwCCSMFNIAZvGaaJLFo+tjxEyzWgCFGotjCydu0eFgBc9GAB8YE5HDngFcCBGoAnKA2T4A+irqEkAPhgBvAL6c4fRF-gwAZL-hDEzN8OBIAenCYMBAYE2MQY0C4gA8aYChqABNSLj1YDwB5LAAragzGJw83XKLS8qgAOg8kbwR-QKNTOlCsYrKM5qwIqIAVFAAmAGYAFgBWG2MAcwBXDGowWGlRGAByCEwcXF2YAEsIaJACw1OlsA9cWihYyjhjOHXMpO2qWl2VsCnACOK1oB0Ex0auUiMAA6okANZvEAAnJ5HhnCDmGD4SggG5Yah0FTgo6EFR4glEzGqRCOSkQU6E8xtTjnHp1AZNDx2DoGLohTkNIaEUhAA
https://github.com/kyeotic
Tim Kye (kyeotic)https://github.com/kyeotic
on Feb 17, 2021https://github.com/microsoft/TypeScript/issues/35562#issuecomment-780795028
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/jamesopstad
James Opstad (jamesopstad)https://github.com/jamesopstad
on May 7, 2022https://github.com/microsoft/TypeScript/issues/35562#issuecomment-1120204949
https://github.com/omerd-cyera
Omer Duchovne [od] (omerd-cyera)https://github.com/omerd-cyera
on May 23, 2023https://github.com/microsoft/TypeScript/issues/35562#issuecomment-1559638740
https://github.com/NWYLZW
YiJie (NWYLZW)https://github.com/NWYLZW
on Dec 14, 2023https://github.com/microsoft/TypeScript/issues/35562#issuecomment-1855915064
YiJie (NWYLZW)https://github.com/NWYLZW
on Dec 14, 2023https://github.com/microsoft/TypeScript/issues/35562#event-11248652628
refactor: use a `SpecialShape` to describe `union` and `intersection`…https://github.com/typp-js/typp/commit/f4e42f4c14ab124d9d6e9d5476ee41e479a5a57c
f4e42f4https://github.com/typp-js/typp/commit/f4e42f4c14ab124d9d6e9d5476ee41e479a5a57c
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/35562
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/35562
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featurehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Awaiting%20More%20Feedback%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%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.