Skip to content

Commit 4776f68

Browse files
committed
Add test for type identifier assignment
1 parent 8e5d0cc commit 4776f68

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

parser/src/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,7 @@ a = (
958958
type (
959959
X = int
960960
)
961+
type = 1
961962
"#;
962963
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());
963964
}

parser/src/snapshots/rustpython_parser__parser__tests__type_as_identifier.snap

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)