-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional shared objects #124
Comments
Thanks for entering this issue, which has actually been known for a while as noted in the readme:
But good to have an explicit entry in the tracker for when the time comes to address it. Thanks again. |
I missed that note, my bad. This issue could then be considered a feature request rather than a bug. |
Thanks for the offer! And, let's keep it as a bug because full support (as with any other type) is certainly what makes more sense. The current limitations have been due to time constraints. |
Describe the bug
Shared objects that are marked as optional in a comment, are not wrapped in
scala.Option
.In Java with
--java:optionals
enabled,java.util.Optional
is not used either.To Reproduce
results in:
Expected behavior
Target language(s):
Additional context
In
ScalaGen.scala:95
, the type is wrapped inscala.Option
. This type is not used inScalaGen.scala:109
, where the type name for ObjectRefTypes is generated.Analogously in
JavaGen.scala:98
for Java generation.(at least, this is my interpretation of what is happening)
The text was updated successfully, but these errors were encountered: