build: error on mixed declarations and code