Files
kotlin/compiler/testData/diagnostics/tests/dataFlow/assignment/assignToNewVal.kt
2015-02-16 18:50:10 +03:00

10 lines
206 B
Kotlin

fun test(a: Any?) {
if (a == null) return
<!DEBUG_INFO_SMARTCAST!>a<!>.hashCode()
val b = a
<!DEBUG_INFO_SMARTCAST!>b<!>.hashCode()
val c: Any? = a
c<!UNSAFE_CALL!>.<!>hashCode()
}