Skip to content

Commit ba11343

Browse files
committed
Add a minimisation of the upickle failure
1 parent 0aa3ae5 commit ba11343

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/neg/i11834.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,10 @@ trait ZA[-X] // ZA[T] ~> ZA { X
6363
class ZB[-Y](val put: Y => Unit) extends ZA[Y] // ZB[T] ~> ZB { X >: Y; Y >: T }
6464
class ZC[-Z](fn: Int => Unit) extends ZB[Int](fn) with ZA[Z] // ZC[T] ~> ZC { X >: (Y & Z); Y >: Int; Z >: T } // error
6565
class ZD[-Z](fn: Z => Unit) extends ZB[Z](fn) with ZA[Int] // ZD[T] ~> ZD { X >: (Y & Int); Y >: Z; Z >: T } // error
66+
67+
trait Visitor[-X]
68+
trait VDelegate[Y] extends Visitor[Y]
69+
class RDelegate1[Z] extends VDelegate[Z] with Visitor[Any] // X >: Z & X >: Any // error
70+
class RDelegate2[Z] extends Visitor[Any] with VDelegate[Z] // X >: Any & X >: Z // error
71+
class RDelegate3[Z] extends VDelegate[Z] with Visitor[Nothing] // X >: Z & X >: Nothing // ok
72+
class RDelegate4[Z] extends Visitor[Nothing] with VDelegate[Z] // X >: Nothing & X >: Z // ok

0 commit comments

Comments
 (0)