Skip to content

Commit

Permalink
Explicitly call items for HashSets.
Browse files Browse the repository at this point in the history
Workaround for nim-lang/Nim#18150
  • Loading branch information
dsrw committed Dec 1, 2021
1 parent fb09637 commit a909bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/print.nim
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ proc newNode*[K, V](x: Table[K, V]): Node =

proc newNode*[T](x: HashSet[T] | set[T]): Node =
var nodes: seq[Node]
for e in x:
for e in x.items():
nodes.add(newNodeFromBaseType(e))
Node(kind: nkArray, nodes:nodes)

Expand Down

0 comments on commit a909bac

Please sign in to comment.