-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Weird inference failure in promote_u0
#918
Comments
Moved to Julia's Base: JuliaLang/julia#50735. Indeed, that's weird. |
Not sure why, but when I am running the above code on my computer, the return type now seems correctly inferred. Code warntype output (after a direct copy paste of the above code sample in a fresh Julia session):
And the second example provides the same output as given above, i.e., inference still works. Pkg status: Manifest:
Versioninfo:
|
It recently got some tweaks. That would have fixed these cases. |
Originally opened in SciML/OrdinaryDiffEq.jl#2001
MWE:
Output:
The first one always fails to infer (i.e. doing
Wrapper2
first makes it fail to inferWrapper2
).I have no idea why, since
anyeltypedual
seems to be const folded:The text was updated successfully, but these errors were encountered: