kopia lustrzana https://github.com/micropython/micropython
py/compile2: Raise SyntaxError if positional args are given after */**.
A port of 1e70fda69f
pull/9172/head
rodzic
d7576c4ba7
commit
4ddb838f8b
|
@ -2248,6 +2248,10 @@ STATIC void compile_trailer_paren_helper(compiler_t *comp, const byte *p_arglist
|
|||
n_keyword += 1;
|
||||
}
|
||||
} else {
|
||||
if (star_flags) {
|
||||
compile_syntax_error(comp, p, "non-keyword arg after */**");
|
||||
return;
|
||||
}
|
||||
if (n_keyword > 0) {
|
||||
compile_syntax_error(comp, p, "non-keyword arg after keyword arg");
|
||||
return;
|
||||
|
|
Ładowanie…
Reference in New Issue