Skip to content

Commit 1a6d2ec

Browse files
committed
Fix test
Two spurious follow-on errors disappeared
1 parent ffa9dcc commit 1a6d2ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/neg/tcpoly_overloaded.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trait Monad[T <: Bound[T], MyType[x <: Bound[x]], Bound[_]] {
1111

1212
trait Test {
1313
def moo: MList[Int]
14-
class MList[T](el: T) extends Monad[T, List, Any] { // error: does not conform to upper bound // error
14+
class MList[T](el: T) extends Monad[T, List, Any] { // error: wrong kind
1515
def flatMap[S <: RBound[S], RContainer[x <: RBound[x]], RBound[_],
1616
Result[x <: RBound[x]] <: Monad[x, RContainer, RBound]]
1717
(f: T => Result[S]): Result[S] = sys.error("foo")
@@ -21,5 +21,5 @@ trait Test {
2121
def flatMap[S]
2222
(f: T => List[S], foo: Int): List[S] = sys.error("foo")
2323
}
24-
val l: MList[String] = moo.flatMap[String, List, Any, MList]((x: Int) => new MList("String")) // error: does not conform to upper bound // error
24+
val l: MList[String] = moo.flatMap[String, List, Any, MList]((x: Int) => new MList("String")) // error: wrong kind
2525
}

0 commit comments

Comments
 (0)