mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-22 20:45:28 +00:00
Fix end location of nodes containing body
This commit is contained in:
parent
3abdc87076
commit
1b7a272b77
3 changed files with 9 additions and 6 deletions
|
@ -173,7 +173,8 @@ class Foo(A, B):
|
|||
def __init__(self):
|
||||
pass
|
||||
def method_with_default(self, arg='default'):
|
||||
pass";
|
||||
pass
|
||||
";
|
||||
insta::assert_debug_snapshot!(parse_program(source, "<test>").unwrap());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue