fork download
  1. object A {
  2. // val other = B
  3. val other = {println("A.other"); B}
  4. }
  5.  
  6. object B {
  7. // val other = A
  8. val other = {println("B.other"); A}
  9. }
  10. object Main {
  11. def main(args: Array[String]) {
  12. A
  13. }
  14. }
  15.  
Success #stdin #stdout 0.38s 381952KB
stdin
Standard input is empty
stdout
A.other
B.other