Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Apr 24, 2012
1 parent 84480c5 commit aaa0f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/declaration.c
Expand Up @@ -1064,7 +1064,7 @@ void VarDeclaration::semantic(Scope *sc)
}
else if (storage_class & STCfinal)
{
error("final cannot be applied to variable");
error("final cannot be applied to variable, perhaps you meant const?");
}

if (storage_class & (STCstatic | STCextern | STCmanifest | STCtemplateparameter | STCtls | STCgshared | STCctfe))
Expand Down

0 comments on commit aaa0f3d

Please sign in to comment.