Open
Description
Compiler version
3.1.1-RC1
Minimized code
trait MyTypeclass[F[_]]
def f[F[_]: MyTypeclass, U](t:F[U]) = ???
type MyType[T] = String
implicit val impl:MyTypeclass[MyType] = ???
val stream:Option[MyType[Int]] = ???
for {
keyStream <- stream
x = 17 // uncommenting this line makes it compile
} yield f(keyStream)
https://scastie.scala-lang.org/t7ixyW5qQtqxSnQWGIsQDw
Output
no implicit argument of type Playground.MyTypeclass[Comparable] was found
for an implicit parameter of method f in object Playground
Expectation
Should compile like in Scala 2.13