mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Allow Tests in function arguments (rather than just Expressions)
This fixes #39
This commit is contained in:
1 parent
5b17ccb4f4
commit
c8a0b04b2d
1 file changed
+1
-1
@@ -340,7 +340,7 @@ TestList: Vec<ast::Expression> = {
|
||||
};
|
||||
|
||||
FunctionArguments: Vec<ast::Expression> = {
|
||||
<e: Comma<Expression>> => e,
|
||||
<e: Comma<Test>> => e,
|
||||
};
|
||||
|
||||
Comma<T>: Vec<T> = {
|
||||
|
||||
Reference in new issue
Block a user