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

13 lines
233 B
Kotlin
Vendored

fun test(x: Any?) {
if (x !is String) return
class C {
val v = <!DEBUG_INFO_SMARTCAST!>x<!>.length
val vGet: Int
get() = <!DEBUG_INFO_SMARTCAST!>x<!>.length
val s: String = <!DEBUG_INFO_SMARTCAST!>x<!>
}
}