Try it you might like it !
Swap the slide and barrel, install the slide stop and see if the slide matches the rear of the frame, insure your getting enough lockup with the barrel link/locking lugs on the barrel/frame, then function check the gun, if all is well, test fire it just like any new unknown gun, 1 round in the mag, if this functions correctly, lockback and good ejection, then try two rounds, and so on, every gun is different. I have seen some setups like this, the only question is why do you want to do this, a smaller and shorter gun has it's purpose, putting a full size/length slide on top kind of defeats the smaller handgun purpose.
If everything fits, and functions correctly, then go for it, You will know if somethings not right. It may be fine but would just look different around the slide dust shield area.
Let us know how it works out and if it looks fairly good, send us some pics.
enjoy and stay safe.
Duane USN/ret..