Skip to content

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Sep 12, 2025

Backports scala#23847 to the 3.3.7.

PR submitted by the release tooling.
[skip ci]

som-snytt and others added 2 commits September 12, 2025 19:01
Fixes scala#21187

If a function literal `x => body` has an expected type `X ?=> ?` then
maybe they intended to write `x ?=> body`.

As shown in the test, maybe types will misalign in other ways to emit
warnings.
Fixes scala#21187 

If a function literal `x => body` has an expected type `X ?=> ?` then
maybe they intended to write `x ?=> body`.

As shown in the test, maybe types will misalign in other ways to emit
warnings.
[Cherry-picked e0ff329][modified]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants