diff options
Diffstat (limited to 'tests/untried/pos/t443.scala')
-rw-r--r-- | tests/untried/pos/t443.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/untried/pos/t443.scala b/tests/untried/pos/t443.scala new file mode 100644 index 000000000..cdaefe9ec --- /dev/null +++ b/tests/untried/pos/t443.scala @@ -0,0 +1,14 @@ +object Test { + + def lookup(): Option[Tuple2[String, String]] = + ((null: Option[Tuple2[String, String]]) : @unchecked) match { + case Some((_, _)) => + if (true) + Some((null, null)) + else + lookup() match { + case Some(_) => Some(null) + case None => None + } + } +} |