Skip to content

Conversation

@odersky
Copy link
Contributor

@odersky odersky commented Dec 1, 2025

No description provided.

An anonymous class is expanded roughly to

    { class $anon{ ... }; new $anon }

Previously the `new` part had a zero extent span at the end of the class.
When used with significant indentation, this caused some puzzlement in error
messages since one thought the last class definition was to blame. The span
is now the whole anonymous class.
@odersky odersky requested a review from a team as a code owner December 2, 2025 16:40
In capture checking, a type mismatch might happen for a synthesized tree
(say from implicit search). It can be helpful to show this tree. Before
capture checking a helpful message is less likely since we don't synthesize
implicit trees that then don't match under the standard typing rules.
@odersky
Copy link
Contributor Author

odersky commented Dec 3, 2025

This will be part of a future PR

@odersky odersky closed this Dec 3, 2025
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.

1 participant