fix type error in static-locals test