fix(exhaustiveness): for constructor use correct name because import aliases

This commit is contained in:
rvcas 2023-08-03 16:28:47 -04:00
parent 60ac8ab591
commit 266b6bbb7d
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 1 additions and 1 deletions

View File

@ -556,11 +556,11 @@ pub(super) fn simplify(
Ok(p)
}
ast::Pattern::Constructor {
name,
arguments,
location,
tipo,
with_spread,
constructor: super::PatternConstructor::Record { name, .. },
..
} => {
let (module, type_name, arity) = match tipo.deref() {