You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] /tmp/ExportExtension.scala:14:14
[error] no eligible member x2 at this.foo
[error] exportfoo.x2
[error] ^^
[error] /tmp/ExportExtension.scala:27:3
[error] value x2 is not a member of Bar- did you mean Bar.x1?
[error] Bar().x2,
[error] ^^^^^^^^
Expectation
It should be possible to export an extension method applied on a specific receiver.
Though technically this might be considered a lack of a feature rather than a bug, this is a point were extension methods are less useful than implicit classes.
Considerations
Could this work with export foo.* or would extension exports be restricted to explicitly named methods?
The text was updated successfully, but these errors were encountered:
Compiler version
3.3.4, 3.7.0-RC1-bin-20250116-0f9e502-NIGHTLY
Minimized code
Output
Expectation
It should be possible to export an extension method applied on a specific receiver.
Though technically this might be considered a lack of a feature rather than a bug, this is a point were extension methods are less useful than implicit classes.
Considerations
Could this work with
export foo.*
or would extension exports be restricted to explicitly named methods?The text was updated successfully, but these errors were encountered: