-
Notifications
You must be signed in to change notification settings - Fork 1.1k
java.lang.AssertionError: assertion failed: Attempt to commit TS[11888X, 11724X, 11481X, 11061X, 10149, 2, #13101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like we'll have to drop or relax the assert (by adding |
A self-contained reproducer: trait Vehicle
trait Car extends Vehicle
trait Encoder[A]
object Encoder {
implicit val encodeVehicle: Encoder[Vehicle] = ???
implicit val encodeCar: Encoder[Car] = ???
}
trait Route
trait Printer
trait Marshaller[-A] // must be contravariant
object Test {
implicit def marshaller[A: Encoder](implicit p: Printer = ???): Marshaller[A] = ???
// the `Printer` implicit arg seems to be necessary, either with default value, or no implicit in scope
def foo[A](v: A)(implicit m: Marshaller[A]): Route = ???
val route: Route = identity {
val f: (Car => Route) => Route = ??? // ok if s/Car/Vehicle/
f(vehicle => foo(vehicle))
}
}
|
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
Tried both
3.0.1
and3.0.2-RC1
Minimized code
See below
#13101 (comment)
Output (click arrow to expand)
sbt compile
The text was updated successfully, but these errors were encountered: