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
I tried to make some of these types abstract a while ago - see #807 - one of the issues was it caused boxing which would be unacceptable performance regression. I don't think I tried to make the tag itself abstract though. Can you check if this would cause boxing? You can use :javap in the REPL to view the generated bytecode.
vs.
Normally the trait works but not with
Any
orAnyRef
.field[Symbol @@ "field1"](None: Any)
doesn't throw butval f = field[Symbol @@ "field1"](None: Any)
does.Also
throws.
Scala 2.13.10.
Discovered in https://stackoverflow.com/questions/74384745/encoding-decoding-a-field-with-any-datatype-assigned-with-value-none-in-scala
The text was updated successfully, but these errors were encountered: