summaryrefslogtreecommitdiff
path: root/test/files/neg/cyclics.check
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-02-23 19:21:05 +0000
committerMartin Odersky <odersky@gmail.com>2009-02-23 19:21:05 +0000
commitbf35b888e49afb245883571cc00cbb5ec7341f24 (patch)
tree8c060484dde8c122f1d65fceedf0dd962a4ad90c /test/files/neg/cyclics.check
parenta4baf48a5fb38f29d462accc57f93032955efa0e (diff)
downloadscala-bf35b888e49afb245883571cc00cbb5ec7341f24.tar.gz
scala-bf35b888e49afb245883571cc00cbb5ec7341f24.tar.bz2
scala-bf35b888e49afb245883571cc00cbb5ec7341f24.zip
fixed several problems with cyclic references u...
fixed several problems with cyclic references uncovered by experimenting with collections. Added early type definitions.
Diffstat (limited to 'test/files/neg/cyclics.check')
-rw-r--r--test/files/neg/cyclics.check10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/cyclics.check b/test/files/neg/cyclics.check
new file mode 100644
index 0000000000..c240387d2f
--- /dev/null
+++ b/test/files/neg/cyclics.check
@@ -0,0 +1,10 @@
+cyclics.scala:2: error: illegal cyclic reference involving type A
+ type A = List[A]
+ ^
+cyclics.scala:3: error: illegal cyclic reference involving type B
+ type B[T] = List[B[B[T]]]
+ ^
+cyclics.scala:5: error: illegal cyclic reference involving type E
+ type C = I { type E = C }
+ ^
+three errors found