Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/varnotnull/setNullInTry.kt
T

10 lines
180 B
Kotlin
Vendored

// !LANGUAGE: +SoundSmartCastsAfterTry
fun foo() {
var s: String?
s = "Test"
try {
s = null
} catch (ex: Exception) {}
s<!UNSAFE_CALL!>.<!>hashCode()
}