aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-12 10:38:33 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-12 10:38:40 +0100
commit34d11c5ff1d0339a117c6b1be6d534e80de7bef9 (patch)
tree0a726f3338c58237ca7c6c0d03ed8da59583f866 /tests
parent9b3c727a0faa0e0f693a4053e0bb260c695e62ff (diff)
downloaddotty-34d11c5ff1d0339a117c6b1be6d534e80de7bef9.tar.gz
dotty-34d11c5ff1d0339a117c6b1be6d534e80de7bef9.tar.bz2
dotty-34d11c5ff1d0339a117c6b1be6d534e80de7bef9.zip
Allow enclosing module as qualifying class
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/i324.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/i324.scala b/tests/pos/i324.scala
new file mode 100644
index 000000000..5461379be
--- /dev/null
+++ b/tests/pos/i324.scala
@@ -0,0 +1,7 @@
+class O
+object O {
+ val x: this.type = O.this
+}
+object O2 {
+ val x: this.type = O2.this
+}