~singpolyma/dhall-ruby

5a59f36d5aabb44d2572c714e6f3605a44be02f8 — Stephen Paul Weber 3 years ago 6de5322
Do not commute generally

The operator is commutative, but that doesn't mean x == False should
become False == x upon normalization.
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/dhall/ast.rb
M lib/dhall/ast.rb => lib/dhall/ast.rb +1 -1
@@ 69,7 69,7 @@ module Dhall
		def dhall_eq(other)
			if self == other
				Bool.new(value: true)
			elsif other.is_a?(Bool)
			elsif other == Bool.new(value: true)
				other.dhall_eq(self)
			else
				Operator::Equal.new(lhs: self, rhs: other)