Type declaration inside for