From 9b700376f890784e0b933b627ed2573addad1ca7 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Sun, 12 May 2019 15:22:46 -0500 Subject: [PATCH] Enum should not have itself in the alts --- lib/dhall/ast.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dhall/ast.rb b/lib/dhall/ast.rb index ae95c0c..738abc2 100644 --- a/lib/dhall/ast.rb +++ b/lib/dhall/ast.rb @@ -886,7 +886,7 @@ module Dhall def self.from(alts, tag, value) if value.nil? - Enum.new(tag: tag, alternatives: alts) + Enum.new(tag: tag, alternatives: alts.without(tag)) else new( tag: tag, -- 2.34.2