From 28d4641010da0092047c6ee03427d6e7f7163c83 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Wed, 23 May 2018 18:04:16 +0100 Subject: [PATCH] Update comments with current issue link --- eth-rpc/jsonmarshal.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth-rpc/jsonmarshal.nim b/eth-rpc/jsonmarshal.nim index bbea015..f219aed 100644 --- a/eth-rpc/jsonmarshal.nim +++ b/eth-rpc/jsonmarshal.nim @@ -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):