-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Type checking error when mixing inline defs, match types, and applied type constructors #8321
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
|Found: Int *: Int *: scala.Tuple.Concat[Unit, (Int, Int)]
|Required: Int *: scala.Tuple.Concat[Int *: Unit, Singleton & (Int, Int)] When To fix that we need to:
|
I could reproduce the bug without match types by changing the return type of ++ to a covariant trait: trait Concat1[X <: Tuple, +Y <: Tuple] |
Uh oh!
There was an error while loading. Please reload this page.
minimized code
Both
concat2
andconcat3
work. Removinginline
fromconcat
also works.The text was updated successfully, but these errors were encountered: