Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trait A {
- def goo(): Int
- def foo(): Int
- }
- object A {
- def foo(a: A): Int = 1
- def $init$(a: A): Unit = ???
- }
- class B extends A {
- override def foo(): Int = A.foo(this)
- override def goo(): Int = 2
- def B(): Unit = ???
- }
- class C$ {
- def m(): Int = 1
- }
- object C$ {
- val MODULE$ = new C$()
- }
- object C {
- def m() = C$.MODULE$.m()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement