mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
a working version
This commit is contained in:
parent
73358b98bd
commit
6284a90785
4 changed files with 181 additions and 66 deletions
|
@ -337,7 +337,9 @@ fn subs_fmt_content(this: &Content, subs: &Subs, f: &mut fmt::Formatter) -> fmt:
|
|||
} => write!(f, "Recursion({:?}, {:?})", structure, opt_name),
|
||||
Content::Structure(flat_type) => subs_fmt_flat_type(flat_type, subs, f),
|
||||
Content::Alias(name, arguments, actual) => {
|
||||
write!(f, "Alias({:?}, {:?}, {:?})", name, arguments, actual)
|
||||
let slice = subs.get_subs_slice(*arguments.variables().as_subs_slice());
|
||||
|
||||
write!(f, "Alias({:?}, {:?}, {:?})", name, slice, actual)
|
||||
}
|
||||
Content::Error => write!(f, "Error"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue