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
When using new to construct an instance of a class and passing named args the fields in any base class for fields not specified in the named args are not having their initialisers invoked.
For example:
> class X{ int i = 3 }
> class Y extends X { int j }
> new Y(j:4).i
0
The text was updated successfully, but these errors were encountered:
When using
new
to construct an instance of a class and passing named args the fields in any base class for fields not specified in the named args are not having their initialisers invoked.For example:
The text was updated successfully, but these errors were encountered: