Files
kotlin-fork/compiler/testData/codegen/box/regressions/kt4682.kt
T
Alexander Udalov 51b01b5d7d 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
2014-05-05 16:49:23 +04:00

9 lines
144 B
Kotlin

fun foo(compareTo: Any.(p: Function0<Int>) -> Int, p: () -> Int) {
p < p
}
fun box(): String {
foo({ it() }, { 42 })
return "OK"
}