Synthesis of ring-fused oxazolo- and pyrazoloisoquinolinones by a one-pot Pd-catalyzed carboxamidation and aldol-type condensation cascade process.