summaryrefslogtreecommitdiff
path: root/test/files/run/t7992b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t7992b.scala')
-rw-r--r--test/files/run/t7992b.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t7992b.scala b/test/files/run/t7992b.scala
new file mode 100644
index 0000000000..6fe1f990d5
--- /dev/null
+++ b/test/files/run/t7992b.scala
@@ -0,0 +1,18 @@
+class C {
+ def foo: Int = 0
+}
+
+class E extends C {
+ override def foo: Int = {
+ (None: Option[Int]).getOrElse {
+ class C
+ E.super.foo
+ }
+ }
+}
+
+object Test {
+ def main(args: Array[String]) {
+ new E().foo
+ }
+}