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

16 lines
232 B
Kotlin
Vendored

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