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:
Alexander Udalov
2014-05-05 03:37:51 +04:00
parent 13f7ca51b0
commit 51b01b5d7d
7 changed files with 127 additions and 65 deletions
@@ -0,0 +1,8 @@
fun foo(compareTo: Any.(p: Function0<Int>) -> Int, p: () -> Int) {
p < p
}
fun box(): String {
foo({ it() }, { 42 })
return "OK"
}