fix bug in code generation for x => pat clauses