diff options
author | Martin Odersky <odersky@gmail.com> | 2015-10-22 10:11:46 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-22 13:28:47 +0200 |
commit | 9421e61051bf56329045250132e184065810ea13 (patch) | |
tree | b4798d334dffb8862bd9f084bbc92daa888001a7 /tests | |
parent | 6b7c51c5c4f02b7713f5f44c4de4a287cdd329c6 (diff) | |
download | dotty-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')
-rw-r--r-- | tests/pos/i831.scala | 4 |
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 +} |