Varargs: add test

This commit is contained in:
Georgy Bronnikov
2020-09-09 20:44:27 +03:00
parent 67d7bf3269
commit 8990344bb2
8 changed files with 45 additions and 0 deletions
@@ -0,0 +1,10 @@
fun <T> f(x: T): T {
fun g(vararg xs: T): T {
return xs[0]
}
return g(x)
}
fun box() = f("OK")