CuI-catalyzed photochemical or thermal reactions of 3-(2-azidobenzylidene)lactams. Application to the synthesis of fused indoles.