Skip to content

Commit 1d2cec2

Browse files
committed
Add test for type identifier assignment
1 parent 1d4e3eb commit 1d2cec2

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
@@ -931,6 +931,7 @@ a = (
931931
type (
932932
X = int
933933
)
934+
type = 1
934935
"#;
935936
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());
936937
}

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)