Make sure byte-sized tag unions are printed as unions in the repl

Closes #4713
This commit is contained in:
Ayaz Hafiz 2022-12-12 17:55:31 -06:00
parent 4de0c831bd
commit 8bd61d9408
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 13 additions and 1 deletions

View file

@ -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]"#,
);
}