aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i831.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-10-22 10:11:46 +0200
committerMartin Odersky <odersky@gmail.com>2015-10-22 13:28:47 +0200
commit9421e61051bf56329045250132e184065810ea13 (patch)
treeb4798d334dffb8862bd9f084bbc92daa888001a7 /tests/pos/i831.scala
parent6b7c51c5c4f02b7713f5f44c4de4a287cdd329c6 (diff)
downloaddotty-9421e61051bf56329045250132e184065810ea13.tar.gz
dotty-9421e61051bf56329045250132e184065810ea13.tar.bz2
dotty-9421e61051bf56329045250132e184065810ea13.zip
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.
Diffstat (limited to 'tests/pos/i831.scala')
-rw-r--r--tests/pos/i831.scala4
1 files changed, 4 insertions, 0 deletions
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
+}