diff options
author | Martin Odersky <odersky@gmail.com> | 2015-03-05 15:56:43 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-18 11:14:15 +0100 |
commit | 35d1160cd65d21076b1f640624663ad7b35f9c56 (patch) | |
tree | e6dd003c59002bb31a96f0dc357ee1f5ef84188d /tests/pos/pickleOK/varargs.scala | |
parent | 3823f29c05cb071cd3a595751543021a4f4cf382 (diff) | |
download | dotty-35d1160cd65d21076b1f640624663ad7b35f9c56.tar.gz dotty-35d1160cd65d21076b1f640624663ad7b35f9c56.tar.bz2 dotty-35d1160cd65d21076b1f640624663ad7b35f9c56.zip |
More tests
Both some long overdue pos tests and more pickleOK tests
Diffstat (limited to 'tests/pos/pickleOK/varargs.scala')
-rw-r--r-- | tests/pos/pickleOK/varargs.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pos/pickleOK/varargs.scala b/tests/pos/pickleOK/varargs.scala new file mode 100644 index 000000000..3739636b8 --- /dev/null +++ b/tests/pos/pickleOK/varargs.scala @@ -0,0 +1,13 @@ +object varargs { + List(1, 2, 3) + def g(x: Int*) = x.length + g(1, 2, 3, 4) + val x = if (true) 1 else 2 + def foo[T](x: T, y: T): T = x + foo(1, 2) + val xs = 1 :: 2 :: Nil + g(xs: _*) + g(Nil: _*) + g(1) + g() +}
\ No newline at end of file |