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
This isn't a "bug", only questionable semantics, since currently transparent methods aren't meant to be dispatches at runtime. And without runtime dispatch, we have no choice here:
defbaz(b: Bar) = println(b.bar)
baz(newFoo) // must give 1
So here I'll abuse "stat:needs spec" for "we must pick our poison".
Then I would consider it buggy semantics. I would argue that either we have runtime semantics or we disallow overrides. #4860 gives the correct runtime semantics.
nicolasstucki
changed the title
Overriding a method with a transparent method is inconstant
Overriding a method with a inline method is inconstant
Oct 24, 2018
The text was updated successfully, but these errors were encountered: