Things marked 'enum' should not be changed to 'immutable
This commit is contained in:
parent
fd51353abf
commit
55091c8b5c
|
@ -65,6 +65,7 @@ class ImmutableFinder:BaseAnalyzer
|
||||||
{
|
{
|
||||||
if (blockStatementDepth > 0 && isImmutable <= 0
|
if (blockStatementDepth > 0 && isImmutable <= 0
|
||||||
&& (autoDeclaration.storageClass !is null
|
&& (autoDeclaration.storageClass !is null
|
||||||
|
&& autoDeclaration.storageClass.token != tok!"enum"
|
||||||
&& autoDeclaration.storageClass.token != tok!"immutable"))
|
&& autoDeclaration.storageClass.token != tok!"immutable"))
|
||||||
{
|
{
|
||||||
foreach (id; autoDeclaration.identifiers)
|
foreach (id; autoDeclaration.identifiers)
|
||||||
|
|
Loading…
Reference in New Issue