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
scala>traitBar// defined trait Bar
scala>enumB(x: Int) {
|caseFooextendsBarwithB(10)
| }
2|caseFooextendsBarwithB(10)
|^^^^^|classB is not a trait2|caseFooextendsBarwithB(10)
|^| missing argument for parameter x of constructor B: (x: Int):B
expectation
The second error message is wrong as we are definitely not missing an argument for B's constructor.