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
--Error: example.scala:3:6----------------------------------------------------3|classCextendsB|^| parameterized traitA is indirectly implemented,
| needs to be implemented directly so that arguments can be passed
1 error found
Notes
we can still prevent compilation with the init checker:
--Error: example.scala:2:33---------------------------------------------------2|traitBextendsA { overridevals="B" } // requires override val s|^|Access non-initialized field s. Callingtrace:
|->traitA(vals:String) { println(s) } [ example.scala:1 ]
1 error found
The text was updated successfully, but these errors were encountered:
Minimized code
found by @texasbruce in #640 (comment)
Output
prints
null
Expectation
this error appears if we remove the override
Notes
we can still prevent compilation with the init checker:
The text was updated successfully, but these errors were encountered: