From e4fd920fdc8e65738111837273a53548bcbb24b9 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 16 Dec 2016 09:36:06 +0100 Subject: 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. --- tests/repl/innerClasses.check | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/repl/innerClasses.check (limited to 'tests/repl') 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 -- cgit v1.2.3