Hi. Can compiler reject following program, or at l...
# announcements
v
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
}
Output:
Copy code
d is null