class Foo
{
Foo() {}
~Foo() {}
doSomething() {}
}
If the return type is accidentally left off a function, the compile error says, "The name of constructors and destructors must be the same as the class"
In the above example the mistake is trivial to see.. but if it is in some large class (i.e. a copy/paste mistake) and the error sends you looking at the ctor(s)/dtor(s), which are fine.. it can potentially take some time to track down what went wrong.
Would it be possible to print the name of the offending function?
If a script function does not have a return parameter, is it most commonly a typo'd ctor/dtor?
Thank you!