~singpolyma/dhall-ruby

3f26cd029b4fc8f7bc5905cd8ae6ae1a8353ee43 — Stephen Paul Weber 3 years ago bd80dfe
Do not commute multiplication when normalizing
1 files changed, 1 insertions(+), 2 deletions(-)

M lib/dhall/ast.rb
M lib/dhall/ast.rb => lib/dhall/ast.rb +1 -2
@@ 34,8 34,7 @@ module Dhall
		end

		def *(other)
			case other
			when Natural
			if other.is_a?(Natural) && other.zero?
				other * self
			else
				Operator::Times.new(lhs: self, rhs: other)