Skip to content

Conversation

som-snytt
Copy link
Contributor

Fixes #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.

@som-snytt som-snytt marked this pull request as ready for review September 2, 2025 04:29
@Gedochao Gedochao requested review from tgodzik and noti0na1 September 2, 2025 05:32
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.

Exceptions inexplicably swallowed when inlined context functions interact
2 participants