Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/varnotnull/setNullInTryFinally.fir.kt
T
Dmitriy Novozhilov 6735cc8937 [FIR] Implement new bound smartcast algorithm
#KT-36055 Fixed
2020-02-12 10:17:45 +03:00

16 lines
243 B
Kotlin
Vendored

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