I tried loading 9mm in a factory .40 and they looked OK, and would chamber and eject when working the slide manually. They did not feed reliably when shooting, though.
When I put the 9mm magazine back in, everything worked fine. I did not try it with any of my other factory .40 mags, though.
This was a P99