Skip to content

Commit 73384c0

Browse files
committed
Add missing test for #4820
1 parent 8ae1b19 commit 73384c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/neg/i4820b.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
trait SetOps[A, +C <: SetOps[A, C]] {
2+
def concat(that: Iterable[A]): C = ???
3+
}
4+
5+
class Set1[A] extends SetOps // error: should be SetOps[A, Set1[A]]

0 commit comments

Comments
 (0)