Skip to content

Instantly share code, notes, and snippets.

@Ragmaanir
Created August 22, 2011 15:31
Show Gist options
  • Save Ragmaanir/1162677 to your computer and use it in GitHub Desktop.
Save Ragmaanir/1162677 to your computer and use it in GitHub Desktop.
cyclic definitions
object A1 { val X = B1.Y }
object B1 { val Y :Int = A1.X }
println(A1.X)
object A2 { val X = B2.Y+1 }
object B2 { val Y :Int = A2.X*2 }
println(A2.X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment