454ae3b17a
Previously if an unsafe call is to an overloaded function, FIR checkers report NONE_APPLICABLE. This change instead report them as UNSAFE_CALL or its variants.
15 lines
207 B
Kotlin
Vendored
15 lines
207 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
class A
|
|
class B
|
|
|
|
fun A.foo(a: A) {}
|
|
fun A.foo(b: B) {}
|
|
var a: A? = null
|
|
|
|
fun smartCastInterference(b: B) {
|
|
if (a != null) {
|
|
a<!UNSAFE_CALL!>.<!>foo(b)
|
|
}
|
|
}
|