From b9af696f62f556cec67d8e180aab841b4cf9ae00 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 17 Jan 2008 18:22:39 +0000 Subject: fixed exhaustiveness warnings in test --- test/files/run/patmatnew.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/files') diff --git a/test/files/run/patmatnew.scala b/test/files/run/patmatnew.scala index 77727060da..e80c85191a 100644 --- a/test/files/run/patmatnew.scala +++ b/test/files/run/patmatnew.scala @@ -528,7 +528,7 @@ object Test extends TestConsoleMain { val offset : Int def matching : Option[Token] } - def go(tok : Token) = tok.matching match { + def go(tok : Token) = (tok.matching: @unchecked) match { case Some(other) if true => Some(other) case _ if true => tok.matching match { case Some(other) => Some(other) @@ -597,7 +597,7 @@ object Test extends TestConsoleMain { s.isDefinedAt(42) // just load the thing, to see if the classes are found - (None:Option[Boolean]) match { + (None:Option[Boolean] @unchecked) match { case x if x.map(x => x).isEmpty => } } @@ -817,7 +817,7 @@ object Test extends TestConsoleMain { object Ticket335 extends TestCase("#335") { // compile-only override def runTest { - (EmptyTree: Tree) match { + (EmptyTree: Tree @unchecked) match { case Node(_,v,_) if (v == 0) => 0 case EmptyTree => 2 } -- cgit v1.2.3