The annexation of the whole of a municipality to another municipality, shall not adversely affect proceedings for the collection or enforcement of any tax or special assessment, but they shall proceed to a finality as though no annexation had taken place. The proceeds thereof shall be paid over to the treasurer of the annexing municipality, to be used, however, for the purpose for which the tax was levied or assessed.
65 ILCS 5/7-1-20