Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bad(number: Int) {
- def test(): Unit = println(s"Number is $number")
- }
- class BadChild extends Bad(42)
- trait Good extends BadChild
- object Main extends App with Good {
- test()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement