Advertisement
Guest User

dich'

a guest
Oct 4th, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.26 KB | None | 0 0
  1. trait A {
  2.   def goo(): Int
  3. }
  4. object A {
  5.   def foo(): Int = 1
  6. }
  7.  
  8. class B extends A {
  9.   def foo(): Int = A.foo()
  10.   def goo(): Int = 2
  11. }
  12.  
  13. class C$ {
  14.   def m(): Int = 1
  15. }
  16.  
  17. object C$ {
  18.   val MODULE$ = new C$()
  19. }
  20.  
  21. class C {
  22.   def m() = C$.MODULE$.m()
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement