diff options
author | Martin Odersky <odersky@gmail.com> | 2016-12-16 09:36:06 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-12-16 09:36:17 +0100 |
commit | e4fd920fdc8e65738111837273a53548bcbb24b9 (patch) | |
tree | 78c400112e413c51a394321fb30582e764169832 /tests/repl | |
parent | 5d782d316e1c13f92f628bb5a6f1f76d6ea9f8e7 (diff) | |
download | dotty-e4fd920fdc8e65738111837273a53548bcbb24b9.tar.gz dotty-e4fd920fdc8e65738111837273a53548bcbb24b9.tar.bz2 dotty-e4fd920fdc8e65738111837273a53548bcbb24b9.zip |
Fix #1806: Define outer accessors at the right phase
Some outer accessors were defined at phase explicitOuter,
but were entered into the scope of their enclosing class only
at phase explicitOuter + 1. This turned them to stale symbols
when trying to access them at a later run, because at their
initially valid phase they were not found as members of
their owner.
Diffstat (limited to 'tests/repl')
-rw-r--r-- | tests/repl/innerClasses.check | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/repl/innerClasses.check b/tests/repl/innerClasses.check new file mode 100644 index 000000000..72dc6ae45 --- /dev/null +++ b/tests/repl/innerClasses.check @@ -0,0 +1,5 @@ +scala> class A { class Inner } +defined class A +scala> class B extends A { class Inner2 extends super.Inner } +defined class B +scala> :quit |