Skip to content

Commit 318dea1

Browse files
authored
Merge branch 'master' into kf/refactor
2 parents 29947a4 + 437aa8b commit 318dea1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/printing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function _print_tree(printnode::Function,
196196
# Print node representation
197197

198198
# Get node representation as string
199-
toprint = tree != roottree && isa(roottree, Indexed) ? roottree[tree] : tree
199+
toprint = tree !== roottree && isa(treekind(roottree), IndexedTree) ? roottree[tree] : tree
200200
str = repr_node(toprint, context=io)
201201

202202
# Copy buffer to output, prepending prefix to each line

0 commit comments

Comments
 (0)