A constructor declaration cannot contain a return type, or the static keyword. It is also possible that you want to declare a normal method, but in this case, the name should not be the same as the class name (because the class name is reserved for constructors).
Example:
class Test {
int func Test() ; Error, should not have a return type
endfunc
}
To fix this, either remove the return type, or rename the function if you do not want to declare a constructor.
See Also
Errors