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
The following example program worked with scalac 2.7.1.final, but with a current SVN version the ordering of implicit definitions must have changed. This might be intentional, but I did not find it mentioned on the changes list.
classMyImplicit {
// With this implicit, the example works// with scalac 2.7.1.final and 2.7.1.r15731-b20080811151138// implicit def c2powerc(c: C) = new PowerC(c);classUseIt {
defm(c : C) = c.power
}
classC {}
classPowerC(c: C) {
defpower="Power!"
}
// With this implicit, the example works// with scalac 2.7.1.final, but results in// error: value power is not a member of MyImplicit.this.C// with 2.7.1.r15731-b20080811151138.implicitdefc2powerc(c: C) =newPowerC(c);
}
The text was updated successfully, but these errors were encountered:
The following example program worked with scalac 2.7.1.final, but with a current SVN version the ordering of implicit definitions must have changed. This might be intentional, but I did not find it mentioned on the changes list.
The text was updated successfully, but these errors were encountered: