~singpolyma/dhall-ruby

232908e2239aa23bb5e2087feba5578e5abe155b — Stephen Paul Weber 3 years ago 7a3a7bc
Normalize list element types before comparing
1 files changed, 2 insertions(+), 2 deletions(-)

M lib/dhall/typecheck.rb
M lib/dhall/typecheck.rb => lib/dhall/typecheck.rb +2 -2
@@ 388,11 388,11 @@ module Dhall
				end

				def element_type
					@alist.first.value&.type || @alist.element_type
					(@alist.first.value&.type || @alist.element_type).normalize
				end

				def element_types
					@alist.to_a.map(&:type)
					@alist.to_a.map(&:type).map(&:normalize)
				end
			end