-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Warnings of + and - #7294
Comments
cc: @stevengj It looks like it is due to the recent restoration of array +/- scalar |
Ah; that's why he initially used StridedArray instead of AbstractArray :) |
Should we switch #7226 back to StridedArray? Or resolve all the ambiguities? (Yes, I've seen those "could not show value of type Tuple" ambiguity warnings before...they are annoying.) |
It looks like the ambiguity warnings arise because some AbstractArray types already implemented |
I agree with @simonster. Subtypes of
|
Sounds reasonable. |
One further issue is that .+(x,y) = x+y
.-(x,y) = x-y This can lead to a stack overflow when neither Array + Number nor Array .+ Number are defined, e.g. |
We should probably add new fallbacks for |
I just checked out the latest master, and when I was watching the repo being rebuilt, I saw the following warnings:
test_all
passes though.Besides the ambiguities, there's another problem: the warning reads like: could not show value of type Tuple ...
The text was updated successfully, but these errors were encountered: