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) Ok(p)
} }
ast::Pattern::Constructor { ast::Pattern::Constructor {
name,
arguments, arguments,
location, location,
tipo, tipo,
with_spread, with_spread,
constructor: super::PatternConstructor::Record { name, .. },
.. ..
} => { } => {
let (module, type_name, arity) = match tipo.deref() { let (module, type_name, arity) = match tipo.deref() {