-
-
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
real(Number) -> Int
#27285
Comments
Can you provide a code snippet of exactly what you are tried, and what you got? |
|
fredrikekre provided the obvious answer, but I assume you were asking in what context I discovered this issue. I am currently working on a
I then called Unfortunately, I did not manage to construct a MWE for the |
I agree that either returning That said, your |
It would be nice to remove |
@JeffBezanson, the difficulty is that this may cause some code to fail if inference fails, rather than just to be slow. e.g. will |
duplicate? of #4808 |
I would have expected
real(Number) -> Real
, but instead I gotreal(Number) -> Int
. One can argue whetherreal(Number) -> Real
is truly the right definition, but clearlyreal(Number) -> Int
makes no sense.The problem is caused by the following three lines:
julia/base/complex.jl
Lines 108 to 110 in cfca311
The text was updated successfully, but these errors were encountered: