Skip to content

Conversation

@odersky
Copy link
Contributor

@odersky odersky commented Dec 30, 2025

An unboxed reach in a result type of a method will in almost all cases lead to use leakage error in the body of the method (except if the body is pure, and we widen to the reach without cause). Warn at this point already so that the leakage error that follows can be better understood.

@odersky odersky changed the title Warn if reach capability in result will cause leakage Warn if reach capability in result will likely cause leakage Dec 30, 2025
An unboxed reach in a result type of a method will in almost all cases lead
to use leakage error in the body of the method (except if the body is pure, and
we widen to the reach without cause). Warn at this point already so that the
leakage error that follows can be better understood.
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