diff options
author | Martin Odersky <odersky@gmail.com> | 2015-06-26 17:39:51 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-06-26 18:17:56 +0200 |
commit | b50f9abef672221a4706f0819eca2cfc1068751c (patch) | |
tree | 4c0efb035ed19d2e52ed6c03f39835058a2e9e54 /tests/run/i689.scala | |
parent | ef0184826b784fda9e2e1ef9aab31cab692cf3d2 (diff) | |
download | dotty-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.scala | 10 |
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 + } +} |