Skip to content

Commit

Permalink
Fix construction of empty lists of type AnyType
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron committed Mar 2, 2023
1 parent 256671c commit 55d3794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eopsin/typed_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ def empty_list(p: Type):
return plt.EmptyListList(uplc.BuiltinList([], el.sample_value))
if isinstance(p.typ, DictType):
plt.EmptyDataPairList()
if isinstance(p.typ, RecordType):
if isinstance(p.typ, RecordType) or isinstance(p.typ, AnyType):
return plt.EmptyDataList()
raise NotImplementedError(f"Empty lists of type {p} can't be constructed yet")

Expand Down

0 comments on commit 55d3794

Please sign in to comment.