[IR] Merged K/N inliner with the common one

This commit is contained in:
Igor Chevdar
2019-08-15 17:49:04 +03:00
parent 32153c26a8
commit ad8bcda99e
6 changed files with 183 additions and 78 deletions
@@ -1,5 +1,5 @@
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
// IGNORE_BACKEND: JS, JVM_IR
// IGNORE_BACKEND: JS, JVM_IR, JS_IR
fun foo(vararg l: Long, s: String = "OK"): String =
if (l.size == 0) s else "Fail"