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 should print nothing but ends up printing foo because we desugar:
foo() m2_: c
into:
val$1$:Int=Test.foo()
c.m2_:($1$)
In scalac this was basically unfixable because this desugaring is done during parsing, but in dotty we should have the type of m2_: during desugaring which tells us that its argument is by-name and thus we could simply do: