diff options
author | Burak Emir <emir@epfl.ch> | 2007-07-07 14:06:15 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-07-07 14:06:15 +0000 |
commit | ab013e707142955e67386255254e4c7008ada14c (patch) | |
tree | 5fa1931102aeec56facb85bcf5f3424b848e322b /test/files | |
parent | f581be6a67d35520577031a2c441a85a9354eb3c (diff) | |
download | scala-ab013e707142955e67386255254e4c7008ada14c.tar.gz scala-ab013e707142955e67386255254e4c7008ada14c.tar.bz2 scala-ab013e707142955e67386255254e4c7008ada14c.zip |
compilation-only test case
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/patmatnew.scala | 6 |
1 files changed, 6 insertions, 0 deletions
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, |