mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
write more tests for reset/reuse
This commit is contained in:
parent
95365959f2
commit
eb793b2b44
5 changed files with 362 additions and 1 deletions
|
@ -146,6 +146,17 @@ impl fmt::Debug for Symbol {
|
|||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Symbol {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
let module_id = self.module_id();
|
||||
let ident_id = self.ident_id();
|
||||
|
||||
match ident_id {
|
||||
IdentId(value) => write!(f, "{:?}.{:?}", module_id, value),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn fallback_debug_fmt(symbol: Symbol, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
let module_id = symbol.module_id();
|
||||
let ident_id = symbol.ident_id();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue