summaryrefslogtreecommitdiff
path: root/test/files/run/t3126.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t3126.scala')
-rw-r--r--test/files/run/t3126.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/t3126.scala b/test/files/run/t3126.scala
index 36322bf896..865047ce4f 100644
--- a/test/files/run/t3126.scala
+++ b/test/files/run/t3126.scala
@@ -4,6 +4,6 @@ object Test {
def main(args: Array[String]): Unit = {
try C.unapply(null) catch { case _: MatchError => }
- try v match { case Some(1) => } catch { case _: MatchError => }
+ try ((v: @unchecked) match { case Some(1) => }) catch { case _: MatchError => }
}
}