René's URL Explorer Experiment


Title: Properly report errors for failed type assertions by ahejlsberg · Pull Request #618 · microsoft/TypeScript · GitHub

Open Graph Title: Properly report errors for failed type assertions by ahejlsberg · Pull Request #618 · microsoft/TypeScript

X Title: Properly report errors for failed type assertions by ahejlsberg · Pull Request #618 · microsoft/TypeScript

Description: Fixes #97.

Open Graph Description: Fixes #97.

X Description: Fixes #97.

Opengraph URL: https://github.com/microsoft/TypeScript/pull/618

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3a0731d1-1649-7317-ce49-1398522a419b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB7D4:2978F1:B8129A:EEFABB:6B00EBC5
html-safe-nonced8e20b2a8ccaa3670d0e03c6cb6ca76306badd253457e5bcf5942d965825fbc6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0Q0OjI5NzhGMTpCODEyOUE6RUVGQUJCOjZCMDBFQkM1IiwidmlzaXRvcl9pZCI6IjM5OTYxNjMzMjYzNDEwODIwNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac68bc9040753b02c2bbd96c3f0bd5304399b118f7622d082bc0f098fcd8755a52
hovercard-subject-tagpull_request:20842185
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/microsoft/TypeScript/pull/618/files
twitter:imagehttps://avatars.githubusercontent.com/u/4226954?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4226954?s=400&v=4
og:image:altFixes #97.
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/618/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F618%2Ffiles
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%2Fpull%2F618%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/618/files
Reloadhttps://github.com/microsoft/TypeScript/pull/618/files
Reloadhttps://github.com/microsoft/TypeScript/pull/618/files
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)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
Sign up for GitHub https://github.com/signup?return_to=%2Fmicrosoft%2FTypeScript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmicrosoft%2FTypeScript%2Fissues%2Fnew%2Fchoose
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
typeAssertionErrorshttps://github.com/microsoft/TypeScript/tree/typeAssertionErrors
Conversation 1 https://github.com/microsoft/TypeScript/pull/618
Commits 1 https://github.com/microsoft/TypeScript/pull/618/commits
Checks 0 https://github.com/microsoft/TypeScript/pull/618/checks
Files changed https://github.com/microsoft/TypeScript/pull/618/files
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/618/files
Properly report errors for failed type assertions https://github.com/microsoft/TypeScript/pull/618/files#top
Show all changes 1 commit https://github.com/microsoft/TypeScript/pull/618/files
8e7be9a Properly report errors for failed type assertions ahejlsberg Sep 6, 2014 https://github.com/microsoft/TypeScript/pull/618/commits/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9
Clear filters https://github.com/microsoft/TypeScript/pull/618/files
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/618/files
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/618/files
checker.ts https://github.com/microsoft/TypeScript/pull/618/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
arrayCast.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-367a50231781049ca61fe9aabedd7a07907ada801ec3f4ecd4f63dc627d89399
contextualTyping39.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-639aeec98a66a2f150fb25eb69ae33c03033e0942575ea944cc0590844c2b988
contextualTyping41.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-d195b917cdc31be8be3ce0b9ad5aa44e937f23554a065f09d8600be6f972fd26
defaultArgsInFunctionExpressions.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-9be17ecff8d1b49e2cb3ce656fd77825de340adf9abc5c5f66a0e7cae8fde695
fuzzy.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-75c5d0805ced985a60d8a795410a3e5f3a3b111b3569714ca61a7df57dafcddc
genericTypeAssertions1.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-587c6cf0ee6885e9ceecaeb0b4ae4fbeb60f642dd26e9c2ccc778f626bee9694
genericTypeAssertions2.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-1b84711c09a96b5524c065adf2236aec5bfde563c77eef80e641b648a830998c
genericTypeAssertions4.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-6199a60632d7e91031e16532ff7a88f9a9c78ca9c348329f5d23ada5fbbeeb58
genericTypeAssertions5.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-3215a28b87d7a91a08811bbef7069c8ce0c937a419890ec6711090a42d29344e
genericTypeAssertions6.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-2da76d80d8cf7c6fc12be46e14714de04e7e0d983543269fadffa44324dee114
intTypeCheck.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-65e2f5c5464c0858419c300551d3a53a63a57926293301f354141d57295c43bd
literals-negative.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-8cd0a3c7b96a5111e58a32ce5f30c7c9c85111a5223fc385c7659eedc2d49f6b
typeAssertions.errors.txt https://github.com/microsoft/TypeScript/pull/618/files#diff-295b066e57486ca255d813826d22769bb6be5a1bf7a5d1ab8244b9b83f03038a
src/compiler/checker.tshttps://github.com/microsoft/TypeScript/pull/618/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/src/compiler/checker.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
https://github.com/microsoft/TypeScript/pull/618/files#diff-d9ab6589e714c71e657f601cf30ff51dfc607fc98419bf72e04f6b0fa92cc4b8
tests/baselines/reference/arrayCast.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-367a50231781049ca61fe9aabedd7a07907ada801ec3f4ecd4f63dc627d89399
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/arrayCast.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-367a50231781049ca61fe9aabedd7a07907ada801ec3f4ecd4f63dc627d89399
tests/baselines/reference/contextualTyping39.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-639aeec98a66a2f150fb25eb69ae33c03033e0942575ea944cc0590844c2b988
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/contextualTyping39.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
tests/baselines/reference/contextualTyping41.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-d195b917cdc31be8be3ce0b9ad5aa44e937f23554a065f09d8600be6f972fd26
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/contextualTyping41.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
tests/baselines/reference/defaultArgsInFunctionExpressions.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-9be17ecff8d1b49e2cb3ce656fd77825de340adf9abc5c5f66a0e7cae8fde695
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/defaultArgsInFunctionExpressions.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-9be17ecff8d1b49e2cb3ce656fd77825de340adf9abc5c5f66a0e7cae8fde695
https://github.com/microsoft/TypeScript/pull/618/files#diff-9be17ecff8d1b49e2cb3ce656fd77825de340adf9abc5c5f66a0e7cae8fde695
https://github.com/microsoft/TypeScript/pull/618/files#diff-9be17ecff8d1b49e2cb3ce656fd77825de340adf9abc5c5f66a0e7cae8fde695
tests/baselines/reference/fuzzy.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-75c5d0805ced985a60d8a795410a3e5f3a3b111b3569714ca61a7df57dafcddc
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/fuzzy.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-75c5d0805ced985a60d8a795410a3e5f3a3b111b3569714ca61a7df57dafcddc
https://github.com/microsoft/TypeScript/pull/618/files#diff-75c5d0805ced985a60d8a795410a3e5f3a3b111b3569714ca61a7df57dafcddc
tests/baselines/reference/genericTypeAssertions1.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-587c6cf0ee6885e9ceecaeb0b4ae4fbeb60f642dd26e9c2ccc778f626bee9694
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/genericTypeAssertions1.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-587c6cf0ee6885e9ceecaeb0b4ae4fbeb60f642dd26e9c2ccc778f626bee9694
tests/baselines/reference/genericTypeAssertions2.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-1b84711c09a96b5524c065adf2236aec5bfde563c77eef80e641b648a830998c
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/genericTypeAssertions2.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-1b84711c09a96b5524c065adf2236aec5bfde563c77eef80e641b648a830998c
tests/baselines/reference/genericTypeAssertions4.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-6199a60632d7e91031e16532ff7a88f9a9c78ca9c348329f5d23ada5fbbeeb58
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/genericTypeAssertions4.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-6199a60632d7e91031e16532ff7a88f9a9c78ca9c348329f5d23ada5fbbeeb58
tests/baselines/reference/genericTypeAssertions5.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-3215a28b87d7a91a08811bbef7069c8ce0c937a419890ec6711090a42d29344e
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/genericTypeAssertions5.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-3215a28b87d7a91a08811bbef7069c8ce0c937a419890ec6711090a42d29344e
tests/baselines/reference/genericTypeAssertions6.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-2da76d80d8cf7c6fc12be46e14714de04e7e0d983543269fadffa44324dee114
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/genericTypeAssertions6.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-2da76d80d8cf7c6fc12be46e14714de04e7e0d983543269fadffa44324dee114
https://github.com/microsoft/TypeScript/pull/618/files#diff-2da76d80d8cf7c6fc12be46e14714de04e7e0d983543269fadffa44324dee114
https://github.com/microsoft/TypeScript/pull/618/files#diff-2da76d80d8cf7c6fc12be46e14714de04e7e0d983543269fadffa44324dee114
tests/baselines/reference/intTypeCheck.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-65e2f5c5464c0858419c300551d3a53a63a57926293301f354141d57295c43bd
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/intTypeCheck.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-65e2f5c5464c0858419c300551d3a53a63a57926293301f354141d57295c43bd
https://github.com/microsoft/TypeScript/pull/618/files#diff-65e2f5c5464c0858419c300551d3a53a63a57926293301f354141d57295c43bd
tests/baselines/reference/literals-negative.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-8cd0a3c7b96a5111e58a32ce5f30c7c9c85111a5223fc385c7659eedc2d49f6b
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/literals-negative.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-8cd0a3c7b96a5111e58a32ce5f30c7c9c85111a5223fc385c7659eedc2d49f6b
https://github.com/microsoft/TypeScript/pull/618/files#diff-8cd0a3c7b96a5111e58a32ce5f30c7c9c85111a5223fc385c7659eedc2d49f6b
tests/baselines/reference/typeAssertions.errors.txthttps://github.com/microsoft/TypeScript/pull/618/files#diff-295b066e57486ca255d813826d22769bb6be5a1bf7a5d1ab8244b9b83f03038a
View file https://github.com/microsoft/TypeScript/blob/8e7be9ad98808cc5eb5946fb1a2644de466ce2b9/tests/baselines/reference/typeAssertions.errors.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/618/{{ revealButtonHref }}
https://github.com/microsoft/TypeScript/pull/618/files#diff-295b066e57486ca255d813826d22769bb6be5a1bf7a5d1ab8244b9b83f03038a
https://github.com/microsoft/TypeScript/pull/618/files#diff-295b066e57486ca255d813826d22769bb6be5a1bf7a5d1ab8244b9b83f03038a
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

Viewport: width=device-width


URLs of crawlers that visited me.