Sorry for late reply.
Once, this error reporting was necessary in order to reject unsupported code like issue 8318.
Now, I simply removed here for bug 10007 fix so I've moved the error reporting into `FuncDeclaration::semantic`.