TEST: with no parameters to vararg

This commit is contained in:
Vasily Levchenko
2017-02-01 16:45:07 +03:00
committed by vvlevchenko
parent 2479593f44
commit e7159d364f
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -1009,3 +1009,7 @@ task inline3(type: RunKonanTest) {
goldValue = "5\n"
source = "codegen/inline/inline3.kt"
}
task vararg0(type: RunKonanTest) {
source = "lower/vararg.kt"
}
+6
View File
@@ -0,0 +1,6 @@
fun foo(vararg x: Any?) {}
fun bar() = foo()
fun main(arg:Array<String>) {
bar()
}