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

16 lines
241 B
Kotlin
Vendored

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