Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/local/LocalClassInMemberOfLocalClass.kt
2015-10-14 20:39:35 +03:00

16 lines
278 B
Kotlin
Vendored

fun test(x: Any) {
if (x !is String) return
class LocalOuter {
fun foo(y: Any) {
if (y !is String) return
class Local {
init {
<!DEBUG_INFO_SMARTCAST!>x<!>.length
<!DEBUG_INFO_SMARTCAST!>y<!>.length
}
}
}
}
}