Miscellaneous cleanup

This commit is contained in:
Ayaz Hafiz 2022-11-08 13:58:14 -06:00
parent 1b38cd0504
commit 28c3709ddf
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 7 additions and 33 deletions

View file

@ -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);