Skip to content

Commit

Permalink
Fix a Natlink engine compiler error
Browse files Browse the repository at this point in the history
The Empty element is now compiled correctly as an optional empty
list.
  • Loading branch information
drmfinlay committed Sep 15, 2023
1 parent 4d6da91 commit 9ca7b53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dragonfly/engines/backend_natlink/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ def _compile_impossible(self, element, compiler):
compiler.add_list("_empty_list")

def _compile_empty(self, element, compiler):
pass
compiler.start_optional()
compiler.add_list("_empty_list")
compiler.end_optional()


#===========================================================================
Expand Down

0 comments on commit 9ca7b53

Please sign in to comment.