Synthesis of spiro[indoline-3,4′-pyran]-3′-carbonitrile derivatives 3a–c. Reagents and conditions: a Mannich reaction (HCHO and secondary amine in ethanol, rt, 2–4 h, b malononitrile and ethyl acetoacetate in ethanol/piperidine (one drop), reflux, 5–6 h