mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
remove single element record
This commit is contained in:
parent
6744e009ac
commit
368d45fb01
5 changed files with 6 additions and 29 deletions
|
@ -452,10 +452,7 @@ fn expand_and_cancel<'a>(env: &mut Env<'a, '_>, stmt: &'a Stmt<'a>) -> &'a Stmt<
|
|||
entry.insert(*index, symbol);
|
||||
|
||||
// fixes https://github.com/rtfeldman/roc/issues/1099
|
||||
if matches!(
|
||||
wrapped,
|
||||
Wrapped::SingleElementRecord | Wrapped::RecordOrSingleTagUnion
|
||||
) {
|
||||
if matches!(wrapped, Wrapped::RecordOrSingleTagUnion) {
|
||||
env.layout_map
|
||||
.insert(*structure, Layout::Struct(field_layouts));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue