Page 1 of 1

[a133] a131->a133 unexpected warning

Posted: 25 Apr 2021, 10:13
by vvhitevvizard
finished autoexecute code followed by a class definition: unwanted warning

Code: Select all

return

class Cluster{ ;warning: this line will never execute due to Return preceeding it
}
I find this general warning to be very handy to hunt for code leftovers inside a function body or lines belonging to the autoexecute scope but in the example above the error checking went beyond that. :D

Re: [a133] a131->a133 unexpected warning  Topic is solved

Posted: 25 Apr 2021, 21:11
by lexikos
It is intended. Stop using return, forget the concept of the "auto-execute section", and maybe read the documentation for Class Initialization.