mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
point to empty VariableSubsSlice
This commit is contained in:
parent
3abdfce735
commit
340055fca5
1 changed files with 2 additions and 1 deletions
|
@ -696,7 +696,8 @@ fn type_to_variable<'a>(
|
|||
|
||||
subs.tag_names.push(tag_name);
|
||||
|
||||
let union_tags = UnionTags::from_slices(tag_names, SubsSlice::default());
|
||||
// the first VariableSubsSlice in the array is a zero-length slice
|
||||
let union_tags = UnionTags::from_slices(tag_names, SubsSlice::new(0, 1));
|
||||
|
||||
let content = Content::Structure(FlatType::TagUnion(union_tags, *ext));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue