From 9421e61051bf56329045250132e184065810ea13 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 22 Oct 2015 10:11:46 +0200 Subject: Fix #831 Need to create a self symbols for modules with explicit self type, but need to take care it is already typed, or sourceModule risks running into CyclicReferences. --- tests/pos/i831.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/pos/i831.scala (limited to 'tests/pos') diff --git a/tests/pos/i831.scala b/tests/pos/i831.scala new file mode 100644 index 000000000..629853b9c --- /dev/null +++ b/tests/pos/i831.scala @@ -0,0 +1,4 @@ +object Test { self => + def a = 5 + self.a +} -- cgit v1.2.3