aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/cycle-bounds.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/cycle-bounds.scala')
-rw-r--r--tests/untried/neg/cycle-bounds.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/untried/neg/cycle-bounds.scala b/tests/untried/neg/cycle-bounds.scala
new file mode 100644
index 000000000..0b43bc703
--- /dev/null
+++ b/tests/untried/neg/cycle-bounds.scala
@@ -0,0 +1,5 @@
+// This should be allowed
+class Ok[T <: Comparable[_ >: T]]
+
+// This is (il)legitimately a cyclic reference
+class NotOk[T <: Comparable[_ <: T]]