Regiospecific formations of thieno[3,2-a]indolizine and thieno[2,3-b]indolizine derivatives.