aboutsummaryrefslogtreecommitdiff
path: root/tests/run/i689.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/i689.scala')
-rw-r--r--tests/run/i689.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run/i689.scala b/tests/run/i689.scala
new file mode 100644
index 000000000..262d13852
--- /dev/null
+++ b/tests/run/i689.scala
@@ -0,0 +1,10 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ object A {
+ def a = new A
+ def y = 0
+ }
+ class A { A.y }
+ A.a
+ }
+}