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

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() {