diff options
Diffstat (limited to 'tests/untried/neg/cyclics.check')
-rw-r--r-- | tests/untried/neg/cyclics.check | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/untried/neg/cyclics.check b/tests/untried/neg/cyclics.check new file mode 100644 index 000000000..c240387d2 --- /dev/null +++ b/tests/untried/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 |