Hi. Can compiler reject following program, or at least issue a warning?
Code:
Copy code
fun main(args: Array<String>) {
println("d is $d")
}
val d: C = a.b // Swapping these two lines fixes it, of course
val c = C() // ...
class C
object a {
val b = c
}