The compiler issues an error on the following code, and I don\'t know how to fix it. Note, it works for the non-closure (direct call) case, it\'s just when I try to capture