Skip to content

Commit 8e5d0cc

Browse files
committed
Add parenthized multiline type alias test case
1 parent e2e1c2b commit 8e5d0cc

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

parser/src/parser.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,9 @@ type X \
920920
= int
921921
type X = \
922922
int
923+
type X = (
924+
int
925+
)
923926
"#;
924927
insta::assert_debug_snapshot!(ast::Suite::parse(source, "<test>").unwrap());
925928
}

parser/src/snapshots/rustpython_parser__parser__tests__parse_type_declaration.snap

Lines changed: 24 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)