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)
|
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() {
|
||||||
|
|
Loading…
Reference in New Issue