-
-
Notifications
You must be signed in to change notification settings - Fork 37
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 unstable? #15
Comments
Which Julia version are you running this on? |
Well on 0.6.1 the return type was |
Looks like Julia has never been able to infer this particular method; I checked in 0.4, 0.5, 0.6, and current 0.7. If that's the case I don't think there's much we can do here. |
Well as a workaround one could use explicit typeassertion for the return value, but I don't know if that will hurt the performance. |
I'm a bit confused.. so there is nothing we can do? |
It's certainly possible, it just requires someone tracking down the underlying issue and addressing it. 🙂 |
Confirming this is still the case @code_warntype QuadGK.quadgk(x -> x*fx7(x), 0.0, 3.0)
|
From the doc: I think this might come from this, we don't have a common type for these, so the compiler has to fall back on any |
#21 got irrelevant for most parts, and some parts are contested. |
I ran
today and it says, that the return type doesn't get inferred. Is it me or is it a bug?
The text was updated successfully, but these errors were encountered: