summaryrefslogtreecommitdiff
path: root/test/pending/pos/t1004.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/pos/t1004.scala')
-rw-r--r--test/pending/pos/t1004.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pending/pos/t1004.scala b/test/pending/pos/t1004.scala
new file mode 100644
index 0000000000..e86631acea
--- /dev/null
+++ b/test/pending/pos/t1004.scala
@@ -0,0 +1,6 @@
+object A {
+ def main(args: Array[String]) = {
+ val x = new { def copy(a : this.type) = a };
+ x.copy(x)
+ }
+}