FIR: Fix diagnostics test data after safe-call refactoring
^KT-38444 In Progress
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
package kt1875
|
||||
|
||||
fun foo(a : Int?, b : Int.(Int)->Int) = a?.<!INAPPLICABLE_CANDIDATE!>b<!>(1) //unnecessary safe call warning
|
||||
fun foo(a : Int?, b : Int.(Int)->Int) = a?.b(1) //unnecessary safe call warning
|
||||
|
||||
interface T {
|
||||
val f : ((i: Int) -> Unit)?
|
||||
@@ -15,7 +15,7 @@ fun test(t: T) {
|
||||
|
||||
fun test1(t: T?) {
|
||||
t.<!UNRESOLVED_REFERENCE!>f<!>(1) // todo resolve f as value and report UNSAFE_CALL
|
||||
t?.f(1)
|
||||
t?.<!INAPPLICABLE_CANDIDATE!>f<!>(1)
|
||||
t.<!INAPPLICABLE_CANDIDATE!>f<!>?.<!UNRESOLVED_REFERENCE!>invoke<!>(1)
|
||||
t?.f?.invoke(1)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user