fix(exhaustiveness): for constructor use correct name because import aliases
This commit is contained in:
parent
60ac8ab591
commit
266b6bbb7d
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue