mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
implement print of FunctionOrTagUnion
This commit is contained in:
parent
ed52615d4c
commit
55f8a7f3a4
1 changed files with 9 additions and 1 deletions
|
@ -397,7 +397,15 @@ fn subs_fmt_flat_type(this: &FlatType, subs: &Subs, f: &mut fmt::Formatter) -> f
|
|||
|
||||
write!(f, "]<{:?}>", new_ext)
|
||||
}
|
||||
FlatType::FunctionOrTagUnion(_, _, _) => todo!(),
|
||||
FlatType::FunctionOrTagUnion(tagname_index, symbol, ext) => {
|
||||
let tagname: &TagName = &subs[*tagname_index];
|
||||
|
||||
write!(
|
||||
f,
|
||||
"FunctionOrTagUnion({:?}, {:?}, {:?})",
|
||||
tagname, symbol, ext
|
||||
)
|
||||
}
|
||||
FlatType::RecursiveTagUnion(rec, tags, ext) => {
|
||||
write!(f, "[ ")?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue