mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-19 11:05:45 +00:00
Fix dict spreading in dict literal
This commit is contained in:
parent
163cb5cd67
commit
52d2e25601
4 changed files with 124 additions and 37 deletions
|
@ -309,4 +309,10 @@ with (0 as a, 1 as b,): pass
|
|||
assert!(parse_program(source, "<test>").is_err());
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_dict_containing_spread() {
|
||||
let parse_ast = parse_expression(r#"{"k": "v", **d}"#, "<test>").unwrap();
|
||||
insta::assert_debug_snapshot!(parse_ast);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue