HK did actually develop a prototype along those lines (I think it was using proprietary magazines though, not sure), but it didn't end up going anywhere
however, there are actually modern license-built rifles that implement the concept (this one without a stock for US law reasons)