private def closure causes MissingMethodException #11