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

Report problems with documented functionality
User avatar
vvhitevvizard
Posts: 454
Joined: 25 Nov 2018, 10:15
Location: Russia

[a133] a131->a133 unexpected warning

25 Apr 2021, 10:13

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
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

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

25 Apr 2021, 21:11

It is intended. Stop using return, forget the concept of the "auto-execute section", and maybe read the documentation for Class Initialization.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 22 guests