mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Make sure byte-sized tag unions are printed as unions in the repl
Closes #4713
This commit is contained in:
parent
4de0c831bd
commit
8bd61d9408
2 changed files with 13 additions and 1 deletions
|
@ -1256,3 +1256,15 @@ fn newtype_by_void_is_wrapped() {
|
|||
r#"Ok 43 : Result (Num *) err"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn enum_tag_union_in_list() {
|
||||
expect_success(
|
||||
indoc!(
|
||||
r#"
|
||||
[E, F, G, H]
|
||||
"#
|
||||
),
|
||||
r#"[E, F, G, H] : List [E, F, G, H]"#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue