Open jamesjuett opened 2 years ago
The result of the proposed fix.
I found a bug of this fix. This fix will also report out-line member function definitions, which should not happen. I am looking into it.
I will convert this pull request to draft temporarily.
The const-ness of a function is only controlled by
receiverType
. However, if the function is not a member function, theDeclarator.processFunctionDeclarator
never checkspostfix.const
.Also, there is no corresponding errors for this kind of syntax error. I added a new error.