mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
parent
a997280dc9
commit
ca57cce93c
2 changed files with 56 additions and 9 deletions
|
@ -1304,3 +1304,20 @@ fn nested_tuple() {
|
|||
r#"("a", (2, 3)) : ( Str, ( U32, U32 )a )a"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ordered_tag_union_memory_layout() {
|
||||
expect_success(
|
||||
indoc!(
|
||||
r#"
|
||||
Loc : { line: U32, column: U32 }
|
||||
|
||||
Node : [ A Loc, Height U8 Loc ]
|
||||
|
||||
x : Node
|
||||
x = Height 1 { line: 2, column: 3 }
|
||||
"#
|
||||
),
|
||||
r#""#,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue