summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-05-28 15:55:11 +0200
committerGitHub <noreply@github.com>2019-05-28 15:55:11 +0200
commit9d8b4d60206cc31ed87ac69723930d79fa4d2c89 (patch)
treeb97533731a268b6e80f5cf9a09ac16ea5360a28b /lib/pure
parent1f8c9aff1f8de7294c5326c7e986779ab27f0239 (diff)
downloadNim-9d8b4d60206cc31ed87ac69723930d79fa4d2c89.tar.gz
fixes #11057 (#11345)
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/json.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim
index 2c2b6500f..d2f0b6e5a 100644
--- a/lib/pure/json.nim
+++ b/lib/pure/json.nim
@@ -1472,8 +1472,7 @@ proc postProcess(node: NimNode): NimNode =
   # Create the type.
   # -> var res = Object()
   var resIdent = genSym(nskVar, "res")
-  # TODO: Placing `node[0]` inside quote is buggy
-  var resType = toIdentNode(node[0])
+  var resType = node[0]
 
   var objConstr = newTree(nnkObjConstr, resType)
   result.add newVarStmt(resIdent, objConstr)