Update comments with current issue link

This commit is contained in:
coffeepots 2018-05-23 18:04:16 +01:00 committed by zah
parent aa92e5f1d9
commit 28d4641010

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):