🐛 useEnumInitializers
should not emit diagnostics in ambient namespaces
#19
Labels
A-Linter
Area: linter
Environment information
What happened?
The following code should not emit diagnostics:
Here the namespace creates an ambient context, making
Enum
an ambient enum.The rule thinks that
Enum
is a concrete enum.Note that the issue is recursive:
See this example in the playground.
Expected result
Enum
should be recognized as an ambient enum and thus the rule should ignore the enum.Code of Conduct
The text was updated successfully, but these errors were encountered: