diff options
Diffstat (limited to 'test/files/neg/cycle-bounds.scala')
-rw-r--r-- | test/files/neg/cycle-bounds.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/cycle-bounds.scala b/test/files/neg/cycle-bounds.scala new file mode 100644 index 0000000000..0b43bc703e --- /dev/null +++ b/test/files/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]] |