Replace some REFERENCE_TARGET calls with RESOLVED_CALL
Also don't do unnecessary and failing casts in CodegenAnnotatingVisitor for SAM adapters #KT-3173 Fixed #KT-3999 Fixed #KT-4682 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun foo(compareTo: Any.(p: Function0<Int>) -> Int, p: () -> Int) {
|
||||
p < p
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
foo({ it() }, { 42 })
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user