summaryrefslogtreecommitdiff
path: root/test/files/run/t6644.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-11-10 21:51:24 +0100
committerJason Zaugg <jzaugg@gmail.com>2012-11-10 22:00:41 +0100
commit1e0a30a744e6853b1e69928a63b327226f4bf27f (patch)
treeb429dc5ae5983c3e06abc7f346135b152e144458 /test/files/run/t6644.scala
parent8b598436f64ca4e980c8a38f642085b4d23e2327 (diff)
downloadscala-1e0a30a744e6853b1e69928a63b327226f4bf27f.tar.gz
scala-1e0a30a744e6853b1e69928a63b327226f4bf27f.tar.bz2
scala-1e0a30a744e6853b1e69928a63b327226f4bf27f.zip
SI-6644 Account for varargs in extmethod forwarder
Which sounded difficult, so instead I offshored the work to the friendly republic of TreeGen.
Diffstat (limited to 'test/files/run/t6644.scala')
-rw-r--r--test/files/run/t6644.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t6644.scala b/test/files/run/t6644.scala
new file mode 100644
index 0000000000..b8b36f957c
--- /dev/null
+++ b/test/files/run/t6644.scala
@@ -0,0 +1,8 @@
+class Testable(val c: String) extends AnyVal {
+ def matching(cases: Boolean*) = cases contains true
+}
+
+object Test extends App {
+ assert(new Testable("").matching(true, false))
+}
+