diff --git a/src/arraymancer/private/ast_utils.nim b/src/arraymancer/private/ast_utils.nim index 3b433fc7..f92fb32a 100644 --- a/src/arraymancer/private/ast_utils.nim +++ b/src/arraymancer/private/ast_utils.nim @@ -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)