KT-5699 VerifyError in inlines

#KT-5699 Fixed
This commit is contained in:
Michael Bogdanov
2014-08-29 10:15:49 +04:00
parent d80907543f
commit 83eb983e08
10 changed files with 118 additions and 6 deletions
@@ -0,0 +1,13 @@
import test.*
fun box(): String {
if (Z().run() != "null0") return "fail 1: ${Z().run()}"
if (Z().run("OK") != "OK0") return "fail 2"
if (Z().run("OK", {(a, b) -> a + b }, 1) != "OK1") return "fail 3"
if (Z().run(lambda = {(a: String, b: Int) -> a + b }) != "0") return "fail 4"
return "OK"
}