diff options
Diffstat (limited to 'test/files/run/patmatnew.scala')
-rw-r--r-- | test/files/run/patmatnew.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/patmatnew.scala b/test/files/run/patmatnew.scala index e77e10abeb..daa1f9898a 100644 --- a/test/files/run/patmatnew.scala +++ b/test/files/run/patmatnew.scala @@ -99,7 +99,7 @@ object Test { // these are exhaustive matches // should not generate any warnings - def f[A](z:{Option[A],Option[A]}) = z match { + def f[A](z:(Option[A],Option[A])) = z match { case Pair(None,Some(x)) => 1 case Pair(Some(x),None ) => 2 case Pair(Some(x),Some(y)) => 3 @@ -118,7 +118,7 @@ object Test { case _ => true } - def h[A](x:{Option[A],Option[A]}) = x match { + def h[A](x: (Option[A],Option[A])) = x match { case Pair(None,_:Some[_]) => 1 case Pair(_:Some[_],None ) => 2 case Pair(_:Some[_],_:Some[_]) => 3 |