Update comments with current issue link

This commit is contained in:
coffeepots 2018-05-23 18:04:16 +01:00
parent 43ccd28d4f
commit 201f31554f

View File

@ -25,12 +25,12 @@ proc fromJson(n: JsonNode, argName: string, result: var int) =
n.kind.expect(JInt, argName)
result = n.getInt()
# TODO: Why can't this be forward declared? Complains of lack of definition
# This can't be forward declared: https://github.com/nim-lang/Nim/issues/7868
proc fromJson[T: enum](n: JsonNode, argName: string, result: var T) =
n.kind.expect(JInt, argName)
result = n.getInt().T
# TODO: Why can't this be forward declared? Complains of lack of definition
# This can't be forward declared: https://github.com/nim-lang/Nim/issues/7868
proc fromJson[T: object](n: JsonNode, argName: string, result: var T) =
n.kind.expect(JObject, argName)
for k, v in fieldpairs(result):