Varargs: add test
This commit is contained in:
+10
@@ -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")
|
||||
Reference in New Issue
Block a user