So I found the needle in the haystack. This crashe...
# kotlin-native
j
So I found the needle in the haystack. This crashes the K/N compiler. Can someone validate by trying it out? I'm using v0.6
Copy code
fun foo() {
    val cls1: Any? = Int
    val cls2: Any? = null

    cls1?.let {
        cls2?.let {
            var itClass = it::class
        }
    }
}
It has something to do with the resolution of the 'it' within two nested let statements.
1