Improve object init order. (#187)

This commit is contained in:
Nikolay Igotti
2017-01-20 13:31:01 +03:00
committed by GitHub
parent 0e05d3b30a
commit 1c878e4843
3 changed files with 14 additions and 1 deletions
@@ -0,0 +1,8 @@
object A {
val a = 42
val b = A.a
}
fun main(args : Array<String>) {
println(A.b)
}