Whenever hereafter the territory comprising a school district of the second, third, or fourth class is annexed to a city comprising a school district of the first class or of the first class A, the annexed school district shall immediately become merged in and become a part of said school district of the first class or of the first class A.
24 P.S. § 2-229