-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Type inference of constructors with known marginals #10207
Comments
can you explain why this is a problem? actual dispatch on the type signature |
A hopefully not too contrieved example, where
|
Similar to #5560, but more expensive since I think it would depend on re-running type inference after inlining. The problem is that, for obvious reasons, we have to generally avoid specializing functions for different values of arguments. |
The example in the OP is fixed now. We should add a test. |
In the following example, the constructor gets inferred as returning
T{A, B}
, and notT{Int, B}
and the known type of thea
-coordinate gets lost .The text was updated successfully, but these errors were encountered: