point to empty VariableSubsSlice

This commit is contained in:
Folkert 2021-11-24 21:57:00 +01:00
parent 3abdfce735
commit 340055fca5

View file

@ -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));