Update tests

This commit is contained in:
Roman Artemev
2018-10-29 00:35:05 +03:00
committed by romanart
parent 12848d4eff
commit 7f215d3f52
25 changed files with 110 additions and 18 deletions
@@ -0,0 +1,15 @@
// !LANGUAGE: +NewInference
// IGNORE_BACKEND: JVM_IR
fun call(f: (String, String) -> String, x: String, y: String): String = f(x, y)
fun box(): String {
var s = "1"
fun foo(x: String, y: String = "5", z: String = "4"): String = s + x + y + z
val r = call(::foo, "2", "3")
if (r != "1234") return "FAIL $r"
return "OK"
}