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.
9 lines
205 B
Kotlin
Vendored
9 lines
205 B
Kotlin
Vendored
fun bar(): Boolean { return true }
|
|
|
|
fun foo(s: String?): Int {
|
|
do {
|
|
if (bar()) break
|
|
} while (s!!.length > 0)
|
|
// This call is unsafe due to break
|
|
return s.<!UNSAFE_CALL!>length<!>
|
|
} |