diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-11-10 21:51:24 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-11-10 22:00:41 +0100 |
commit | 1e0a30a744e6853b1e69928a63b327226f4bf27f (patch) | |
tree | b429dc5ae5983c3e06abc7f346135b152e144458 /test/files/run/t6644.scala | |
parent | 8b598436f64ca4e980c8a38f642085b4d23e2327 (diff) | |
download | scala-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.scala | 8 |
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)) +} + |