Commit 47041be0 authored by Tom Niget's avatar Tom Niget

Emit default values for lambda parameters

parent c06b693f
......@@ -78,7 +78,7 @@ class BlockVisitor(NodeVisitor):
else:
yield from self.visit(argty)
yield arg.arg
if emission == FunctionEmissionKind.DECLARATION and default:
if emission in {FunctionEmissionKind.DECLARATION, FunctionEmissionKind.LAMBDA} and default:
yield " = "
yield from self.expr().visit(default)
yield ")"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment