aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t8315.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t8315.scala')
-rw-r--r--tests/untried/pos/t8315.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/untried/pos/t8315.scala b/tests/untried/pos/t8315.scala
index 2f7742ed6..f56cfda7a 100644
--- a/tests/untried/pos/t8315.scala
+++ b/tests/untried/pos/t8315.scala
@@ -2,11 +2,11 @@ object Test {
def crash(as: Listt): Unit = {
map(as, (_: Any) => return)
}
-
+
final def map(x: Listt, f: Any => Any): Any = {
if (x eq Nill) "" else f("")
}
}
-
+
object Nill extends Listt
class Listt