Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/local/LocalObject.kt
2014-10-01 18:52:52 +04:00

9 lines
201 B
Kotlin

fun foo(x: Any?) {
if (x is String) {
object : Base(<!DEBUG_INFO_SMARTCAST!>x<!>) {
fun bar() = <!DEBUG_INFO_SMARTCAST!>x<!>.length
}
}
}
open class Base(s: String)