diff options
author | Martin Odersky <odersky@gmail.com> | 2007-01-16 20:33:20 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-01-16 20:33:20 +0000 |
commit | 6093bbedc0c0cf39650c4cd931afb18feb1bcda8 (patch) | |
tree | 3c812fab17a33c73b6ce03bb9129d0674dd1b6bf /test/pending | |
parent | 96376cd15412c66bcd30e9b397f211eec4e7bf35 (diff) | |
download | scala-6093bbedc0c0cf39650c4cd931afb18feb1bcda8.tar.gz scala-6093bbedc0c0cf39650c4cd931afb18feb1bcda8.tar.bz2 scala-6093bbedc0c0cf39650c4cd931afb18feb1bcda8.zip |
enabled -Xunapply.
fixed bug contrib 291.
Added Map/Set types to Predef.
Option no longer inherits from Iterable, but there's an implicit conversion.
various other small things.
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/pos/unapplyComplex.scala | 2 | ||||
-rw-r--r-- | test/pending/run/unapply.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/pending/pos/unapplyComplex.scala b/test/pending/pos/unapplyComplex.scala index 0d5700a3be..54080eb86f 100644 --- a/test/pending/pos/unapplyComplex.scala +++ b/test/pending/pos/unapplyComplex.scala @@ -29,7 +29,7 @@ object Test { Console.println("mod"+mod+"arg"+arg) } val Komplex = ComplexRect - new ComplexPolar(Math.sqrt(2),Math.PI / 4.0) match { + new ComplexPolar(Math.sqrt(2),Math.Pi / 4.0) match { case Komplex(re,im) => // z @ ??? Console.println("re"+re+" im"+im) } diff --git a/test/pending/run/unapply.scala b/test/pending/run/unapply.scala index e00a1e63a0..d84711519f 100644 --- a/test/pending/run/unapply.scala +++ b/test/pending/run/unapply.scala @@ -79,7 +79,7 @@ object Mas extends Assert { object Lis extends Assert { def run { - assertEquals(List(1,2,3) match { case List(x,y,_*) => {x,y}}, {1,2}) + assertEquals((List(1,2,3): Any) match { case List(x,y,_*) => {x,y}}, {1,2}) } } |