mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
implement equivalent for Pattern::Stmt
This commit is contained in:
parent
42fdcb7ff1
commit
a5df0aa1c2
1 changed files with 7 additions and 1 deletions
|
@ -1130,7 +1130,13 @@ impl<'a> Pattern<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
Stmt(_) => todo!(),
|
||||
Stmt(str_x) => {
|
||||
if let Stmt(str_y) = other {
|
||||
str_x == str_y
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue