Composition of arbitrary opaque-typed objects #17860
heaven-born
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We can't compose two arbitrary objects because it requires resolving multiple issues related to duplicated methods and fields, but can scala compiler at least "fake" the composition for arbitrary opaque-typed objects when both of them out of the scope of their visibility? And then restrict this object to pass to a method where both the internals are visible.
Beta Was this translation helpful? Give feedback.
All reactions