[ts 4.7] Support extends
constraints for infer
#14476
+1,637
−6
Merged