Sec. 7. (a) A member with at least one (1) year of service in a position covered by the fund after January 1, 1946, shall receive credit for years of service at any time as any of the following:
(1) A member of the general assembly.
(2) An elected state official.
(3) A prosecuting attorney of a judicial circuit.
(4) A judge who is covered by the judges' retirement system but who is ineligible for its benefits.
(5) A member of the armed services if the member joined the armed services while the member was a member of the general assembly, including credit for the unexpired term if the unexpired term of the member of the general assembly was longer than the armed service.