we do want to compare underscore values

This commit is contained in:
rvcas 2020-11-18 07:40:06 -05:00
parent 1e7dcaebd8
commit f471d5bbe1

View file

@ -555,7 +555,7 @@ impl<'a> Pattern<'a> {
(FloatLiteral(x), FloatLiteral(y)) => x == y,
(StrLiteral(x), StrLiteral(y)) => x == y,
// TODO do we want to compare anything here?
(Underscore(_), Underscore(_)) => true,
(Underscore(x), Underscore(y)) => x == y,
// Space
(SpaceBefore(x, _), SpaceBefore(y, _)) => x.equivalent(y),