René's URL Explorer Experiment


Title: Enforce definite initialization of `static` members · Issue #27899 · microsoft/TypeScript · GitHub

Open Graph Title: Enforce definite initialization of `static` members · Issue #27899 · microsoft/TypeScript

X Title: Enforce definite initialization of `static` members · Issue #27899 · microsoft/TypeScript

Description: Is there some clever reason why TSC can't check this (maybe... related to semantics of JS inheritance?)? TypeScript Version: 3.2.0-dev.20181011 Search Terms: strictPropertyInitialization, static, initialized, uninitialized, assigned, pro...

Open Graph Description: Is there some clever reason why TSC can't check this (maybe... related to semantics of JS inheritance?)? TypeScript Version: 3.2.0-dev.20181011 Search Terms: strictPropertyInitialization, static, i...

X Description: Is there some clever reason why TSC can't check this (maybe... related to semantics of JS inheritance?)? TypeScript Version: 3.2.0-dev.20181011 Search Terms: strictPropertyInitialization, stati...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enforce definite initialization of `static` members","articleBody":"Is there some clever reason why TSC can't check this (maybe... related to semantics of JS inheritance?)?\r\n\r\n**TypeScript Version:**  3.2.0-dev.20181011\r\n\r\n**Search Terms:** strictPropertyInitialization, static, initialized, uninitialized, assigned, property\r\n\r\n**Code**\r\n\r\n```ts\r\nclass A {\r\n  static s: number\r\n  a() {\r\n    A.s * 3 // Should be a compile error\r\n  }\r\n}\r\nA.s * 7 // Should be an compile error\r\n```\r\n\r\n**Expected behavior:** Both lines should produce compile errors.\r\n\r\n**Actual behavior:** Both lines result in runtime exceptions.\r\n\r\n[**Playground Link**](https://www.typescriptlang.org/play/index.html#src=class%20A%20%7B%0D%0A%20%20static%20s%3A%20number%0D%0A%20%20a()%20%7B%0D%0A%20%20%20%20A.s%20*%203%20%2F%2F%20Should%20be%20a%20compile%20error%0D%0A%20%20%7D%0D%0A%7D%0D%0AA.s%20*%207%20%2F%2F%20Should%20be%20an%20compile%20error)\r\n\r\n**Related Issues:**\r\n\r\n- https://github.com/Microsoft/TypeScript/issues/21976\r\n","author":{"url":"https://github.com/bcherny","@type":"Person","name":"bcherny"},"datePublished":"2018-10-15T01:25:23Z","url":"https://github.com/microsoft/TypeScript/issues/27899"}

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:68fd37b6-2c15-4216-d386-850d447ce236
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD65E:18ADFF:64B9EE:880E4A:6B04A21F
html-safe-nonced18125d0b734270046560fa03140bee857468d411f72bea5813535ae015b7fa8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjVFOjE4QURGRjo2NEI5RUU6ODgwRTRBOjZCMDRBMjFGIiwidmlzaXRvcl9pZCI6IjU2MDA3NDg1MTM4MjgwNTM1MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccae336ef063460fa703c3d0cb91146d4e7aa4dfd72c35fcc055c8a10807decf6
hovercard-subject-tagissue:369966750
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/27899/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d5a46f1b7094853e8b50c8df9ecbd8a1c96c585e608b25ea8c9570b48dc3b112/microsoft/TypeScript/issues/27899
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d5a46f1b7094853e8b50c8df9ecbd8a1c96c585e608b25ea8c9570b48dc3b112/microsoft/TypeScript/issues/27899
og:image:altIs there some clever reason why TSC can't check this (maybe... related to semantics of JS inheritance?)? TypeScript Version: 3.2.0-dev.20181011 Search Terms: strictPropertyInitialization, static, i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebcherny
hostnamegithub.com
expected-hostnamegithub.com
None9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d
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
release3fd14143b75b2af7b76bbd23b069867d091adfcc
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/27899#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F27899
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%2F27899
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/27899
Reloadhttps://github.com/microsoft/TypeScript/issues/27899
Reloadhttps://github.com/microsoft/TypeScript/issues/27899
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/27899
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/27899
Enforce definite initialization of static membershttps://github.com/microsoft/TypeScript/issues/27899#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/bcherny
Boris Cherny (bcherny)https://github.com/bcherny
on Oct 15, 2018https://github.com/microsoft/TypeScript/issues/27899#issue-369966750
Playground Linkhttps://www.typescriptlang.org/play/index.html#src=class%20A%20%7B%0D%0A%20%20static%20s%3A%20number%0D%0A%20%20a()%20%7B%0D%0A%20%20%20%20A.s%20*%203%20%2F%2F%20Should%20be%20a%20compile%20error%0D%0A%20%20%7D%0D%0A%7D%0D%0AA.s%20*%207%20%2F%2F%20Should%20be%20an%20compile%20error
Suggestion/feature request - enforce static properties/fields  #21976https://github.com/microsoft/TypeScript/issues/21976
Wesley Wigham (weswigham)https://github.com/weswigham
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
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
on Oct 16, 2018https://github.com/microsoft/TypeScript/issues/27899#event-1907639499
https://github.com/bcherny
Boris Cherny (bcherny)https://github.com/bcherny
on Oct 17, 2018https://github.com/microsoft/TypeScript/issues/27899#issuecomment-430484458
Andy (Andrewkraft) (@Andy-MS)https://github.com/Andy-MS
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
on Feb 24, 2019https://github.com/microsoft/TypeScript/issues/27899#issuecomment-466802241
Related stackoverflow questionhttps://stackoverflow.com/questions/54854735/typescript-ignore-static-variable-and-consider-it-correctly-typesafe
https://github.com/SlurpTheo
SlurpTheohttps://github.com/SlurpTheo
on Apr 10, 2019https://github.com/microsoft/TypeScript/issues/27899#issuecomment-481770851
specifically excludedhttps://github.com/Microsoft/TypeScript/pull/20075/commits/190f99e460bda74ccc0ca4add1193b831f07e434
https://github.com/Yogu
Jan Melcher (Yogu)https://github.com/Yogu
on Aug 29, 2019https://github.com/microsoft/TypeScript/issues/27899#issuecomment-526086985
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/Skalman
Dan (Skalman)https://github.com/Skalman
on Jun 6, 2020https://github.com/microsoft/TypeScript/issues/27899#issuecomment-640067957
Jan Melcher (@Yogu)https://github.com/Yogu
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jun 24, 2021https://github.com/microsoft/TypeScript/issues/27899#event-4936223390
https://github.com/JeanMeche
Matthieu Riegler (JeanMeche)https://github.com/JeanMeche
on Jul 31, 2022https://github.com/microsoft/TypeScript/issues/27899#issuecomment-1200406362
https://github.com/lazytype
lazytypehttps://github.com/lazytype
on Jan 3, 2023https://github.com/microsoft/TypeScript/issues/27899#issuecomment-1369396332
https://github.com/SukkaW
Sukka (SukkaW)https://github.com/SukkaW
on Sep 10, 2024https://github.com/microsoft/TypeScript/issues/27899#issuecomment-2340277329
https://github.com/SukkaW
Sukka (SukkaW)https://github.com/SukkaW
on Sep 10, 2024https://github.com/microsoft/TypeScript/issues/27899#issuecomment-2340281980
Wesley Wigham (@weswigham)https://github.com/weswigham
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/27899
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/27899
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.