In my opinion there's no code violation there, although it seems like poor practice if it's just a shortcut and there's not a true difficulty in doing it another way.
(What I would not do is run one inverters AC output through another inverter's disco. 690.31(B)).