From 3ef25516c5b632dd4499d08a644b52017cbfdfb4 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 17 Oct 2019 05:32:26 +0700 Subject: [PATCH] Try to remove typed from parseObject --- src/config.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.nim b/src/config.nim index 906af9b..a80a531 100644 --- a/src/config.nim +++ b/src/config.nim @@ -15,7 +15,7 @@ const defaultConfig* = Config( fps: 60 ) -macro parseObject(obj: typed, key, val: string): typed = +macro parseObject(obj: typed, key, val: string) = result = newNimNode(nnkCaseStmt).add(key) for c in obj.getType[2]: let a = case c.getType.typeKind