aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t0231.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t0231.scala')
-rw-r--r--tests/untried/pos/t0231.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/untried/pos/t0231.scala b/tests/untried/pos/t0231.scala
new file mode 100644
index 000000000..0850d7a57
--- /dev/null
+++ b/tests/untried/pos/t0231.scala
@@ -0,0 +1,17 @@
+class Foo {
+ def aaa: Unit = {
+ println("a")
+ }
+}
+
+class Bar extends Foo {
+ object b {
+ //println("b: " + a) //OK
+ println("b: " + Bar.super.aaa)
+ }
+}
+
+object bug extends App {
+ new Bar
+ ()
+}