aboutsummaryrefslogtreecommitdiff
path: root/tests/run/i689.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-06-26 17:39:51 +0200
committerMartin Odersky <odersky@gmail.com>2015-06-26 18:17:56 +0200
commitb50f9abef672221a4706f0819eca2cfc1068751c (patch)
tree4c0efb035ed19d2e52ed6c03f39835058a2e9e54 /tests/run/i689.scala
parentef0184826b784fda9e2e1ef9aab31cab692cf3d2 (diff)
downloaddotty-b50f9abef672221a4706f0819eca2cfc1068751c.tar.gz
dotty-b50f9abef672221a4706f0819eca2cfc1068751c.tar.bz2
dotty-b50f9abef672221a4706f0819eca2cfc1068751c.zip
Drop Module flag from lifted symbols.
Reason: A lifted module is no longer a module (i.e. singleton object) in the scope to which it is lifted. Fixes #689.
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
+ }
+}