diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-11-24 20:18:08 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-11-24 20:18:08 +0000 |
commit | 597acf7b0c26ca94a34f188fc2919b8482c3ab0a (patch) | |
tree | 19925504774f19edec80a3d700d0bb16f7c10507 /src/library/scala/annotation | |
parent | 46d1d8e55aa40037a536767f0ae8d98665c73617 (diff) | |
download | scala-597acf7b0c26ca94a34f188fc2919b8482c3ab0a.tar.gz scala-597acf7b0c26ca94a34f188fc2919b8482c3ab0a.tar.bz2 scala-597acf7b0c26ca94a34f188fc2919b8482c3ab0a.zip |
Fix for #3621.
Added varargs annotation.
Review by Rytz.
Diffstat (limited to 'src/library/scala/annotation')
-rw-r--r-- | src/library/scala/annotation/varargs.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/library/scala/annotation/varargs.scala b/src/library/scala/annotation/varargs.scala new file mode 100644 index 0000000000..ad6a3f9bd4 --- /dev/null +++ b/src/library/scala/annotation/varargs.scala @@ -0,0 +1,18 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2002-2010, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ +package scala.annotation + +/** <p> + * A method annotation which instructs the compiler to generate a + * Java varargs-style forwarder method for interop. This annotation can + * only be applied to methods with repeated parameters. + * </p> + * + * @since 2.9 + */ +final class varargs extends StaticAnnotation |