Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlow/local/NestedLocalClass.fir.kt
T
Denis Zharkov d869ae7826 FIR: Make resolution logic for local classes the same as for top-level
Run different phases through common transformers sequentially
It should make code more reusable and may help with avoid common bugs
2020-03-25 15:36:17 +03:00

12 lines
142 B
Kotlin
Vendored

fun test(x: Any) {
if (x !is String) return
class LocalOuter {
inner class Local {
init {
x.length
}
}
}
}