summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2008-01-17 18:22:39 +0000
committerMartin Odersky <odersky@gmail.com>2008-01-17 18:22:39 +0000
commitb9af696f62f556cec67d8e180aab841b4cf9ae00 (patch)
treebc34325d229ce15b846298920ab4473cdcd2501f /test
parent3cad8b66e83a6c219a1ea70e7b8853b1cd0f6d51 (diff)
downloadscala-b9af696f62f556cec67d8e180aab841b4cf9ae00.tar.gz
scala-b9af696f62f556cec67d8e180aab841b4cf9ae00.tar.bz2
scala-b9af696f62f556cec67d8e180aab841b4cf9ae00.zip
fixed exhaustiveness warnings in test
Diffstat (limited to 'test')
-rw-r--r--test/files/run/patmatnew.scala6
1 files changed, 3 insertions, 3 deletions
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
}