mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
give better debug info for unresolved type variables
This commit is contained in:
parent
4b5a26ebc6
commit
a431af660d
3 changed files with 34 additions and 7 deletions
|
@ -4615,7 +4615,15 @@ fn reuse_function_symbol<'a>(
|
|||
original: Symbol,
|
||||
) -> Stmt<'a> {
|
||||
match procs.partial_procs.get(&original) {
|
||||
None => result,
|
||||
None => {
|
||||
// danger: a foreign symbol may not be specialized!
|
||||
debug_assert!(
|
||||
env.home == original.module_id() || original.module_id() == ModuleId::ATTR
|
||||
);
|
||||
|
||||
result
|
||||
}
|
||||
|
||||
Some(partial_proc) => {
|
||||
let arg_var = arg_var.unwrap_or(partial_proc.annotation);
|
||||
// this symbol is a function, that is used by-name (e.g. as an argument to another
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue