mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Reject calls with positional arguments after keyword arguments
This commit is contained in:
@@ -634,6 +634,8 @@ impl Compiler {
|
||||
kwarg_names.push(bytecode::Constant::String {
|
||||
value: kwarg.to_string(),
|
||||
});
|
||||
} else if kwarg_names.len() > 0 {
|
||||
panic!("positional argument follows keyword argument");
|
||||
};
|
||||
self.compile_expression(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user