W2008 Safety Warnings
Safety
parameter shadows an enum variant name
When this occurs
This error is triggered when: parameter shadows an enum variant name
Example error message
warning[W2008]:
parameter shadows an enum variant name
How to fix
Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.
Related errors
No related errors.