René's URL Explorer Experiment


Title: Potential regression in 4.2 - Calling `.map` on `T[] | Y[]` is now callable but leads to an implicit any error · Issue #42646 · microsoft/TypeScript · GitHub

Open Graph Title: Potential regression in 4.2 - Calling `.map` on `T[] | Y[]` is now callable but leads to an implicit any error · Issue #42646 · microsoft/TypeScript

X Title: Potential regression in 4.2 - Calling `.map` on `T[] | Y[]` is now callable but leads to an implicit any error · Issue #42646 · microsoft/TypeScript

Description: Bug Report 🔎 Search Terms expression not callable union arrays 🕗 Version & Regression Information This changed between versions 4.1.3 and 4.2 beta ⏯ Playground Link https://www.typescriptlang.org/play?ts=4.1.3#code/CYUwxgNghgTiAEYD2A7Azg...

Open Graph Description: Bug Report 🔎 Search Terms expression not callable union arrays 🕗 Version & Regression Information This changed between versions 4.1.3 and 4.2 beta ⏯ Playground Link https://www.typescriptlang.org/p...

X Description: Bug Report 🔎 Search Terms expression not callable union arrays 🕗 Version & Regression Information This changed between versions 4.1.3 and 4.2 beta ⏯ Playground Link https://www.typescriptlang.o...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Potential regression in 4.2 - Calling `.map` on `T[] | Y[]` is now callable but leads to an implicit any error","articleBody":"# Bug Report\r\n\r\n\u003c!--\r\n  Please fill in each section completely. Thank you!\r\n-->\r\n\r\n### 🔎 Search Terms\r\n\r\n\u003c!--\r\n  What search terms did you use when trying to find an existing bug report?\r\n  List them here so people in the future can find this one more easily.\r\n-->\r\n\r\nexpression not callable union arrays\r\n\r\n### 🕗 Version & Regression Information\r\n\r\nThis changed between versions 4.1.3 and 4.2 beta\r\n\r\n### ⏯ Playground Link\r\n\r\nhttps://www.typescriptlang.org/play?ts=4.1.3#code/CYUwxgNghgTiAEYD2A7AzgF3gDwFzxQFcBbAIxBgG0BdeAH3kxgEsUBzGgKE+wDpioABwAUAM3gBeAHzxRASiA\r\n\r\nhttps://www.typescriptlang.org/play?ts=4.2.0-beta#code/CYUwxgNghgTiAEYD2A7AzgF3gDwFzxQFcBbAIxBgG0BdeAH3kxgEsUBzGgKE+wDpioABwAUAM3gBeAHzxRASiA\r\n\r\n### 💻 Code\r\n\r\n```ts\r\ndeclare const x: number[] | string[]\r\n\r\nx.map(f => f)\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\n`.map` is now callable but `f` as an implicit type of `any`, leading to an implicit any error.\r\n\r\n### 🙂 Expected behavior\r\n\r\nThe current behaviour in 4.1.3 is to mark the `map()` call as not callable as well as `f` should have an implicit any type.\r\n\r\nI don't know if this is a regression but I'm raising it because this change in behaviour is not documented in the release notes.\r\n","author":{"url":"https://github.com/tom-sherman","@type":"Person","name":"tom-sherman"},"datePublished":"2021-02-04T16:56:41Z","url":"https://github.com/microsoft/TypeScript/issues/42646"}

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:f271ed81-9adf-7d96-7684-eeedfe860b15
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBAF0:14F601:ABE039:DDF6A9:6B00E3F9
html-safe-noncef7c933d589cf371499bcdc891398eb0f39b077895b5a6b595e71777deaa96a78
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUYwOjE0RjYwMTpBQkUwMzk6RERGNkE5OjZCMDBFM0Y5IiwidmlzaXRvcl9pZCI6IjgzOTg5NTk3MTQ3OTIxNzA0ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaced68e9ade9bcd2578787a8f03cb020e329b6e093e84ba593f739b0b309cbb3cf
hovercard-subject-tagissue:801465696
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/42646/issue_layout
twitter:imagehttps://opengraph.githubassets.com/68a3b34755afe7e4fe7a976a9683f2e8ded3af54240d9bfe037d5de78603e1e9/microsoft/TypeScript/issues/42646
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/68a3b34755afe7e4fe7a976a9683f2e8ded3af54240d9bfe037d5de78603e1e9/microsoft/TypeScript/issues/42646
og:image:altBug Report 🔎 Search Terms expression not callable union arrays 🕗 Version & Regression Information This changed between versions 4.1.3 and 4.2 beta ⏯ Playground Link https://www.typescriptlang.org/p...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametom-sherman
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
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
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/42646#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F42646
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%2F42646
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/42646
Reloadhttps://github.com/microsoft/TypeScript/issues/42646
Reloadhttps://github.com/microsoft/TypeScript/issues/42646
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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/42646
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/42646
Potential regression in 4.2 - Calling .map on T[] | Y[] is now callable but leads to an implicit any errorhttps://github.com/microsoft/TypeScript/issues/42646#top
Experience EnhancementNoncontroversial enhancementshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experience%20Enhancement%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/tom-sherman
Tom Sherman (tom-sherman)https://github.com/tom-sherman
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issue-801465696
https://www.typescriptlang.org/play?ts=4.1.3#code/CYUwxgNghgTiAEYD2A7AzgF3gDwFzxQFcBbAIxBgG0BdeAH3kxgEsUBzGgKE+wDpioABwAUAM3gBeAHzxRASiAhttps://www.typescriptlang.org/play?ts=4.1.3#code/CYUwxgNghgTiAEYD2A7AzgF3gDwFzxQFcBbAIxBgG0BdeAH3kxgEsUBzGgKE+wDpioABwAUAM3gBeAHzxRASiA
https://www.typescriptlang.org/play?ts=4.2.0-beta#code/CYUwxgNghgTiAEYD2A7AzgF3gDwFzxQFcBbAIxBgG0BdeAH3kxgEsUBzGgKE+wDpioABwAUAM3gBeAHzxRASiAhttps://www.typescriptlang.org/play?ts=4.2.0-beta#code/CYUwxgNghgTiAEYD2A7AzgF3gDwFzxQFcBbAIxBgG0BdeAH3kxgEsUBzGgKE+wDpioABwAUAM3gBeAHzxRASiA
Tom Sherman (tom-sherman)https://github.com/tom-sherman
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#event-4291979252
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issuecomment-773543403
#42620https://github.com/microsoft/TypeScript/pull/42620
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issuecomment-773553062
#35045https://github.com/microsoft/TypeScript/issues/35045
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issuecomment-773565806
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issuecomment-773568229
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issuecomment-773569574
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issuecomment-773574453
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issuecomment-773577401
https://github.com/tom-sherman
Tom Sherman (tom-sherman)https://github.com/tom-sherman
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issuecomment-773662751
#42620https://github.com/microsoft/TypeScript/pull/42620
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Feb 4, 2021https://github.com/microsoft/TypeScript/issues/42646#issuecomment-773668268
Tom Sherman (@tom-sherman)https://github.com/tom-sherman
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Experience EnhancementNoncontroversial enhancementshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experience%20Enhancement%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Feb 5, 2021https://github.com/microsoft/TypeScript/issues/42646#event-4298320673
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Feb 5, 2021https://github.com/microsoft/TypeScript/issues/42646#event-4298320819
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Aug 26, 2022https://github.com/microsoft/TypeScript/issues/42646#issuecomment-1228293951
https://github.com/thorn0
Georgii Dolzhykov (thorn0)https://github.com/thorn0
on Aug 26, 2022https://github.com/microsoft/TypeScript/issues/42646#issuecomment-1228300935
playgroundhttps://www.typescriptlang.org/play?ts=4.8.0-beta&ssl=11&ssc=6&pln=1&pc=1#code/JYWwDg9gTgLgBAKjgQwM5wELIEYFMA2cAZlBCHAEQAC2OBA9DAJ5i6oUDcAUKJLHAG84AFQDKAUVHCouXHAC+xUuWrNWqAMZRgYGAFo2+YADsYjFmy079bGDNycuauQDkIAEzkBeTHXwA6N084AB8RCSl7QI9cbi5PDXxkGTgNCGNUeGMYgC44INiuHiI4AAouOEqy7M9-ZzgvRsoAcVxjXG0NYQsAQWNsmGQYYHSKULCa3DqLBqaKMW7WACVcIg62jQcASjgAMl2KqtKAQknp1gAFZOQQXBgO9BCQw6qqs+crqBu7h-8wa5AqH8+DaAHMYAALOAAHh8ACY9rs4O8LJ9vvcoED-l9Af5cAA3DpMUrGBoAPjgdgArrgtlsuDshPIgA
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 20, 2023https://github.com/microsoft/TypeScript/issues/42646#issuecomment-1599200280
#53489https://github.com/microsoft/TypeScript/pull/53489
Jake Bailey (jakebailey)https://github.com/jakebailey
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 20, 2023https://github.com/microsoft/TypeScript/issues/42646#event-9582250348
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/42646
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/42646
Experience EnhancementNoncontroversial enhancementshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Experience%20Enhancement%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
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.