Synthesis of isocoumarins, dihydroisocoumarins, and isoquinolones via pi-allylnickel halide and pi-olefin-palladium complexes.