Skip to content

Commit

Permalink
List type accepts nil since it is also a list
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuco1 committed Sep 8, 2018
1 parent c06259a commit eeb995c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elsa-types.el
Expand Up @@ -78,6 +78,8 @@ Accepting in this context means that OTHER can be assigned to
THIS."
(cond
((elsa-instance-of other this))
((and (elsa-type-list-p this)
(elsa-type-nil-p other)))
((and (elsa-sum-type-p other)
(-all? (lambda (other-type)
(elsa-type-accept this other-type))
Expand Down

0 comments on commit eeb995c

Please sign in to comment.