There's an issue where lambda functions returned by an outer function are seen as a syntax error even though it compiles correctly. Returning the lambda directly also fails.