mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
better debug info for a mismatch
This commit is contained in:
parent
19d56fa7d4
commit
aa042f3357
2 changed files with 18 additions and 2 deletions
|
@ -1076,8 +1076,8 @@ fn unify_flat_type(
|
|||
// any other combination is a mismatch
|
||||
mismatch!(
|
||||
"Trying to unify two flat types that are incompatible: {:?} ~ {:?}",
|
||||
other1,
|
||||
other2
|
||||
roc_types::subs::SubsFmtFlatType(other1, subs),
|
||||
roc_types::subs::SubsFmtFlatType(other2, subs)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue