You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The analyzer only supports enum types that are at the package level. To lookup an enum type, it looks up a map using a string key equal to the enum type name. If an inner scope has a type of the same name, like in this example, it results in an incorrect diagnostic.
nishanths
changed the title
shadowed enum type in inner scope can produce incorrect diagnostic
same name enum type in inner scope can produce incorrect diagnostic
Nov 5, 2021
Input like this currently produce an incorrect diagnostic.
The incorrect diagnostic is:
Background
The analyzer only supports enum types that are at the package level. To lookup an enum type, it looks up a map using a string key equal to the enum type name. If an inner scope has a type of the same name, like in this example, it results in an incorrect diagnostic.
Next steps
It may be best to address this together with #11.
The text was updated successfully, but these errors were encountered: