From ce1780fbcbafd7be298f930a611743386aa0d6a6 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 7 Jun 2015 16:45:50 +0200 Subject: Fix refs to inner objects A reference to an object from anywhere in its module class can be established by the This of the module class. The previous behavior always referenced the object as a term ref which might cause a reference to the outer This which might not be available (since this is not tracked by ExplicitOuter). Brings t3174.scala back from disabled. --- tests/disabled/pos/t3174.scala | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 tests/disabled/pos/t3174.scala (limited to 'tests/disabled') diff --git a/tests/disabled/pos/t3174.scala b/tests/disabled/pos/t3174.scala deleted file mode 100644 index 8d9b2578d..000000000 --- a/tests/disabled/pos/t3174.scala +++ /dev/null @@ -1,14 +0,0 @@ -object test { - def method(): Unit = { - class Foo extends AnyRef { - object Color { - object Blue - } - - class Board { - val grid = Color.Blue - } - } - new Foo - } - } -- cgit v1.2.3