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
Welcome to Scala2.13.8 (OpenJDK64-BitServerVM, Java17.0.2).
Type in expressions for evaluation. Ortry:help.
scala>classC(i: Int)
classC
scala>newC(42).i
^error: value i is not a member of C
scala>objectX { classC(private[X] i: Int) ; defx=newC(42).i }
^error: value i is not a member of X.C
scala>objectX { classC(private[X] vali:Int) ; defx=newC(42).i }
objectX
Uh oh!
There was an error while loading. Please reload this page.
Reproduction steps
Problem
Spec claims
This came up recently on a forum or ticket, and I was confused by it again when looking at trait parameters on Scala 3.
Scala 3 gives the same result, so I assume the spec is wrong. Or maybe the spec is right and no one knows it.
The text was updated successfully, but these errors were encountered: