From ab013e707142955e67386255254e4c7008ada14c Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Sat, 7 Jul 2007 14:06:15 +0000 Subject: compilation-only test case --- test/files/run/patmatnew.scala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/files') diff --git a/test/files/run/patmatnew.scala b/test/files/run/patmatnew.scala index 6a5e725f29..63b40769ff 100644 --- a/test/files/run/patmatnew.scala +++ b/test/files/run/patmatnew.scala @@ -17,6 +17,12 @@ import scala.testing.SUnit._ object Test extends TestConsoleMain { + //just compilation + def zipFun[a,b](xs:List[a], ys:List[b]):List[Pair[a,b]] = (Pair(xs,ys): @unchecked) match { + // !!! case Pair(List(), _), Pair(_, List()) => List() + case Pair(x :: xs1, y :: ys1) => Pair(x, y) :: zipFun(xs1, ys1) + } + def suite = new TestSuite( new TestSimpleIntSwitch, new SimpleUnapply, -- cgit v1.2.3