For your information, this is happening already. Pakistan's cabinet has given approval of such pact which means proposal was already there and now discussion on modalities would start.
USA has a played a game with China by beefing Indian defence capabilities up and now China can play the same game with India by beefing Pakistan offensive capabilities. India knows it cannot fight and win a two-front war with Pakistan and China simultaneously and that is fortunately India's upcoming fate.
You fight with once country, you loose in the hand of another.