summaryrefslogtreecommitdiff
path: root/test/files/run/run-bug4840.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/run-bug4840.scala')
-rw-r--r--test/files/run/run-bug4840.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/run-bug4840.scala b/test/files/run/run-bug4840.scala
index dda280fd17..5f98bc9f4b 100644
--- a/test/files/run/run-bug4840.scala
+++ b/test/files/run/run-bug4840.scala
@@ -1,6 +1,6 @@
object Test {
def g(x: Boolean): Option[String] = if (x) Some("booya") else None
-
+
def f1() = {
for (x <- g(true)) yield {
g(false) match {
@@ -9,11 +9,11 @@ object Test {
}
}
}
-
+
def f2() = {
for (x <- g(true) ; y <- g(true) ; z <- g(true)) yield {
for (x <- g(true) ; y <- g(true) ; z <- g(true)) yield {
- g(true) map { _ =>
+ g(true) map { _ =>
(null: Any) match {
case Some(x: Int) => x
case _ => 5
@@ -21,7 +21,7 @@ object Test {
}
}
}
- }
+ }
def main(args: Array[String]): Unit = {
println(f1())