-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Match Types arguments with bounds (yet another) #11205
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
Have you tried giving |
Oh, I see. We can wrap the definition of argument bound `Ar2 <: Pr11[Ar1]`
into `Ar2 <: Tu1[Pr11[Ar1]]` and it starts to typecheck well.
However it seems to be an ugly workaround since we have to carry
`Tu1[_]` wrapper (or something like that) all over code along with
projections to extract an actual argument from the wrapper. Did I miss
something?
…On Thu, 28 Jan 2021 at 11:58, Olivier Blanvillain ***@***.***> wrote:
Have you tried giving Pr21[T] a name? I'm not sure the compiler know how to unify wildcards that way...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I'm not 100% sure if "unify wildcards" and "capture conversion" are 1:1, but at least here I think I debugged that it fails because capture conversion fails, and that's because @OlivierBlanvillain do you think we should close this as "won't fix", or do you think it's something that should be made to work? |
Looked at this last week (with @Decel) and I recorded that I think this needs some "subtype reconstruction" (aka "GADT reasoning"), so that we record that in |
I mention that because I discovered that to fix #13741 I also need that inference. |
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.0.0-M3
Minimized code
emits error about ar2 bound
Expectation
The code should be typechecked well.
Note: it is modified version of #6697
The topic of these exercises are obvious typelevel copying of typelevel tuples via typelevel projections.
Now with bound of an argument being itself a projection.
The text was updated successfully, but these errors were encountered: