When editing the method Class Declaration in a system base class which is inhirit by other classes, the compiler does not compile the inheriting classes, generating errors when the user attempt to call methods in the inherit class.
to do this also by code you can use the "compileForward" in "SysCompilerOutput" class
SysCompilerOutput::compileForward(className2Id('InventMovement'));
This is a example of one class you can compile forward other classes in AX. Happy daxing...