In order to explain the formation of (III) and (VII) during the reaction of the quinoline (I) or the isoquinoline (V) with potassium fluoride, the mixed halo compounds (IV) and (VIII) are treated with fluoride, also producing (III) and (VII) respectively.