e72ddbcbfe
To do so, inside the root cause of inapplicable candidate errors, we will record expected/actual type of receiver, if any. That will help identifying inapplicable calls on nullable receiver.
10 lines
180 B
Kotlin
Vendored
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<!>()
|
|
} |