this illustrates that the function implementing the comprehension does not capture `mod_local`. We could handle this case specially, by having a different implementation for `for`, but the wider issue would remain.