-
Notifications
You must be signed in to change notification settings - Fork 8
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
@sum_type
doesn't work with constrained type parameter in variant
#73
Comments
@sum_type
doesn't work with constrained type parameter
inspecting the test I understood I should use |
ok I actually changed slightly the issue, this is now something which could be probably improved |
@sum_type
doesn't work with constrained type parameter@sum_type
doesn't work with constrained type parameter in variant
Yeah, this'll require a bit of thought to design correctly but should be possible I think. I wonder if we should just insert the |
In my opinion yes, I'm already doing this in MixedStrucTypes.jl, there shouldn't be any problem doing that if I'm not mistaken |
I must say though, I'm a little skeptical of the idea of there being instances of type |
I'm not sure, but maybe it can be considered analogous to the case where you have a Union of types, there you can constrain parameters differently if you want |
I ended up having ambiguity problems in MixedStructTypes because of this issue so I fixed it :-) |
e.g. this
throws
but I think this could work
The text was updated successfully, but these errors were encountered: