We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08dfee5 commit c5dff91Copy full SHA for c5dff91
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/ScopeTranslator.java
@@ -155,7 +155,9 @@ public T visitLambdef_nocond_body(Python3Parser.Lambdef_nocond_bodyContext ctx)
155
@Override
156
public T visitLambdef(Python3Parser.LambdefContext ctx) {
157
argListCompilers.push(new ArgListCompiler<>(core));
158
- ctx.accept(argListCompilers.peek());
+ if (ctx.varargslist() != null) {
159
+ ctx.accept(argListCompilers.peek());
160
+ }
161
environment.beginScope(ctx, ScopeKind.Function);
162
try {
163
return super.visitLambdef(ctx);
0 commit comments