mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Miscellaneous cleanup
This commit is contained in:
parent
1b38cd0504
commit
28c3709ddf
6 changed files with 7 additions and 33 deletions
|
@ -1064,7 +1064,7 @@ fn canonicalize_has_clause(
|
|||
let shadow = Loc::at(region, var_name_ident);
|
||||
env.problem(roc_problem::can::Problem::Shadowing {
|
||||
original_region: shadowing.first_seen(),
|
||||
shadow: shadow.clone(),
|
||||
shadow,
|
||||
kind: ShadowKind::Variable,
|
||||
});
|
||||
return Err(Type::Error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue