mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
Reproduce parenthetical def bug
This commit is contained in:
parent
c61b11e88f
commit
6568336f54
1 changed files with 12 additions and 0 deletions
|
@ -126,6 +126,18 @@ mod test_format {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn parenthetical_def() {
|
||||||
|
assert_formats_same(indoc!(
|
||||||
|
r#"
|
||||||
|
(UserId userId) = 5
|
||||||
|
y = 10
|
||||||
|
|
||||||
|
42
|
||||||
|
"#
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn record_destructuring() {
|
fn record_destructuring() {
|
||||||
assert_formats_same(indoc!(
|
assert_formats_same(indoc!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue