Added tests with mixture of SAM and non-SAM parameters.

This commit is contained in:
Evgeny Gerashchenko
2013-04-16 22:45:48 +04:00
parent 7bd11718de
commit e554228a73
6 changed files with 44 additions and 0 deletions
@@ -0,0 +1,6 @@
fun box(): String {
var v = "FAIL"
val max = JavaClass.findMaxAndInvokeCallback({ a, b -> a.length - b.length }, "foo", "kotlin", { v = "OK" })
if (max != "kotlin") return "Wrong max: $max"
return v
}