···474474 self.compile_expression(&decl.body, name)
475475 }
476476 _ => {
477477+ // TODO: in theory, the above case should be covered by this one, but right now
478478+ // if the above case is deleted, there are a few test cases that fail through this
479479+ // case. Appears to be some cleanup that is being missed.
477480 let end = self.get_end("");
478481 self.bind_temporary(end);
479482 let next_to = self.compile_iterator(&decl.query, end)?;