mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-04 02:39:22 +00:00
Add test for combined items
This commit is contained in:
parent
fff291a4de
commit
9eb0752cb4
1 changed files with 3 additions and 0 deletions
|
@ -688,6 +688,9 @@ def func[*Ts](*a: *Ts):
|
||||||
|
|
||||||
def func[**P](*args: P.args, **kwargs: P.kwargs):
|
def func[**P](*args: P.args, **kwargs: P.kwargs):
|
||||||
...
|
...
|
||||||
|
|
||||||
|
def func[T, U: str, *Ts, **P]():
|
||||||
|
pass
|
||||||
";
|
";
|
||||||
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());
|
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue