diff options
Diffstat (limited to 'lib/pure/json.nim')
-rw-r--r-- | lib/pure/json.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim index c09af32f3..048ed2797 100644 --- a/lib/pure/json.nim +++ b/lib/pure/json.nim @@ -398,7 +398,7 @@ proc `%`*(o: enum): JsonNode = ## string. Creates a new `JString JsonNode`. result = %($o) -proc toJsonImpl(x: NimNode): NimNode {.compileTime.} = +proc toJsonImpl(x: NimNode): NimNode = case x.kind of nnkBracket: # array if x.len == 0: return newCall(bindSym"newJArray") @@ -1169,7 +1169,7 @@ when defined(nimFixedForwardGeneric): if typeExpr.kind == nnkTupleConstr: error("Use a named tuple instead of: " & typeExpr.repr, lineinfoNode) - proc foldObjectBody(dst, typeNode, tmpSym, jsonNode, jsonPath, originalJsonPathLen: NimNode): void {.compileTime.} = + proc foldObjectBody(dst, typeNode, tmpSym, jsonNode, jsonPath, originalJsonPathLen: NimNode) = case typeNode.kind of nnkEmpty: discard |