There was an error while loading. Please reload this page.
1 parent 8ea2d40 commit ac1ef57Copy full SHA for ac1ef57
1 file changed
compiler/src/dmd/lint/engine.d
@@ -188,7 +188,7 @@ extern(C++) final class LintVisitor : Visitor
188
189
private void checkConstSpecial(FuncDeclaration fd)
190
{
191
- if (fd.isGenerated() || (fd.storage_class & STC.const_) || (fd.type && fd.type.isConst()))
+ if (fd.isGenerated || (fd.storage_class & STC.const_) || (fd.type && fd.type.isConst()))
192
return;
193
194
if (fd.ident != Id.opEquals && fd.ident != Id.opCmp &&
0 commit comments