The kotlin/swift way of declaring this flow does not let you do this mistake.
It might take quite a lot of work to fix (or bypass) all the reported problems in a large codebase but it is worth it.