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
classFoo {
privateintbar;
publicFoo(intbar) {
this.bar = bar * 2; // ok in Java
}
}
gets converted to:
classFoo(bar: Int) {
privatevalbar= bar *2// compiler complains that recursive val requires type
}
Should be handled for example by prefixing the member variable with _ perhaps; or the other way around, especially when the member variable is public and naming matters.
The text was updated successfully, but these errors were encountered:
this:
gets converted to:
Should be handled for example by prefixing the member variable with
_
perhaps; or the other way around, especially when the member variable is public and naming matters.The text was updated successfully, but these errors were encountered: