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
Suppose we want to inherit from both A's above. This produces an error, as expected:
// error: error overriding method n in trait A of type => Int;// method n in trait A of type => Int needs `override' modifiertraitBextends wrap1.Awith wrap2.A
Consider the following code:
Suppose we want to inherit from both A's above. This produces an error, as expected:
This, of course, is ambiguous
Oops! This isn't allowed (as per the spec, but it's surprising)
But the most surprising thing is that renaming doesn't work!
The same problem arises with access modifiers. Consider:
The text was updated successfully, but these errors were encountered: