Created
August 22, 2011 15:31
-
-
Save Ragmaanir/1162677 to your computer and use it in GitHub Desktop.
cyclic definitions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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