diff options
Diffstat (limited to 'tests/run/t7992b.scala')
-rw-r--r-- | tests/run/t7992b.scala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/run/t7992b.scala b/tests/run/t7992b.scala new file mode 100644 index 000000000..78891fd69 --- /dev/null +++ b/tests/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]): Unit = { + new E().foo + } +} |