mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Print rigid name in debug representation
This commit is contained in:
parent
0920fb4227
commit
716c4cb8e4
1 changed files with 4 additions and 2 deletions
|
@ -798,8 +798,10 @@ fn subs_fmt_content(this: &Content, subs: &Subs, f: &mut fmt::Formatter) -> fmt:
|
|||
};
|
||||
write!(f, "FlexAble({}, {:?})", name, subs.get_subs_slice(*symbols))
|
||||
}
|
||||
Content::RigidVar(name) => write!(f, "Rigid({:?})", name),
|
||||
Content::RigidAbleVar(name, symbol) => write!(f, "RigidAble({:?}, {:?})", name, symbol),
|
||||
Content::RigidVar(name) => write!(f, "Rigid({})", subs[*name].as_str()),
|
||||
Content::RigidAbleVar(name, symbol) => {
|
||||
write!(f, "RigidAble({}, {:?})", subs[*name].as_str(), symbol)
|
||||
}
|
||||
Content::RecursionVar {
|
||||
structure,
|
||||
opt_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue