Things marked 'enum' should not be changed to 'immutable

This commit is contained in:
Hackerpilot 2015-01-14 18:04:20 -08:00
parent fd51353abf
commit 55091c8b5c
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ class ImmutableFinder:BaseAnalyzer
{
if (blockStatementDepth > 0 && isImmutable <= 0
&& (autoDeclaration.storageClass !is null
&& autoDeclaration.storageClass.token != tok!"enum"
&& autoDeclaration.storageClass.token != tok!"immutable"))
{
foreach (id; autoDeclaration.identifiers)