Closures WIP 16 - working closure with a captured local; other cases were not tested yet (task #45)