-
Notifications
You must be signed in to change notification settings - Fork 14
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
Method overwritten
warnings, take 2
#7
Comments
With the traitor syntax this will be hit more often as the type often gets gensym'ed:
Edit: this is now fixed but above still not. |
We are hitting this issue in Meshes.jl, any idea on how to solve it in Julia v1.5 and beyond? |
@mauro3 is there another way to express the same thing that would avoid the warning? I was assuming that this was a quite common pattern. |
The way to fix this is to clearly separate the "trait depot" function from the dispatched handlers. Create the depot only once. That means folks have to agree on the traits they want. |
I am not sure I understand the comment @timholy can you clarify with an example? This is the code that is producing the warning in our case: https://github.com/JuliaGeometry/Meshes.jl/blob/11e2ba938b2bfb6cb4e3d74bddab2752917e8f54/src/viewing.jl#L62-L64 We agreed on the |
The solution consisted of giving the argument the same name: JuliaGeometry/Meshes.jl#110 |
PR #5 fixed most of the
method overwritten
warnings, but not all:If this becomes fixable at some stage without too much effort/code, then fix.
The text was updated successfully, but these errors were encountered: