mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Allow Tests in function arguments (rather than just Expressions)
This fixes #39
This commit is contained in:
@@ -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