From bfea9f20d231bc6b7fb75edbce277d883265b89d Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Tue, 2 Jan 2007 16:51:29 +0000 Subject: * TupleN extends ProductN, again (genprod updated) * better comments and parameter names in scala.xml.MetaData typechecker * now handles special cases (n=0, n=1) for unapply correctly * * even if one returns a Option[Product1[T]] * typechecker now handles unapply return types correctly * * e.g. when returning Option[{A,B}] instead of Option[Product2[A,B]] --- test/pending/run/unapply.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/pending/run/unapply.scala') diff --git a/test/pending/run/unapply.scala b/test/pending/run/unapply.scala index 4cf126de5a..e00a1e63a0 100644 --- a/test/pending/run/unapply.scala +++ b/test/pending/run/unapply.scala @@ -82,3 +82,5 @@ object Lis extends Assert { assertEquals(List(1,2,3) match { case List(x,y,_*) => {x,y}}, {1,2}) } } + + -- cgit v1.2.3