From 1e0a30a744e6853b1e69928a63b327226f4bf27f Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sat, 10 Nov 2012 21:51:24 +0100 Subject: SI-6644 Account for varargs in extmethod forwarder Which sounded difficult, so instead I offshored the work to the friendly republic of TreeGen. --- test/files/run/t6644.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/run/t6644.scala (limited to 'test') 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)) +} + -- cgit v1.2.3