Skip to content

Commit

Permalink
fix replaceSymsByIdents for non nnkSym
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed May 28, 2024
1 parent 785cb7e commit 2feb923
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/arraymancer/private/ast_utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ proc replaceSymsByIdents*(ast: NimNode): NimNode =
of nnkLiterals:
return node
of nnkHiddenStdConv: # see `test_fancy_indexing.nim` why needed
expectKind(node[1], nnkSym)
return ident($node[1])
return inspect(node[1])
else:
letsGoDeeper()
result = inspect(ast)
Expand Down

0 comments on commit 2feb923

Please sign in to comment.