the new Compiler "no_parent" warnings error on procedures with parent calls
Numbered Steps to Reproduce Problem:
Call parent on a procedure that is defined later in the code by a parent object. Compiler warning (but no changes to the code in runtime)
Code Snippet (if applicable) to Reproduce Problem:
mob
display_error()
..()
client << "we do things"
atom
verb
display_error()
set name = "do the thing"
set category = "debug"
CRASH("this also does things")
switching the atom/mob locations will cause no compiler errors to be displayed
Expected Results:
No warnings
Actual Results:
Compiler issues a warning to the display error verb, even though it has a functioning parent call
Does the problem occur:
Every time? Or how often?Yes
In other games?Yes
In other user accounts?Yes
On other computers?Yes
When does the problem NOT occur?
N/A
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) Any version below 515.1617
Workarounds:
Define base objects and base object procedures before defining child class procedures
The verb override producing this warning is, however, a bug.