From dcbb2d66da24094f6d6699294406431debc51dd9 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Tue, 16 Jul 2019 10:32:56 -0400 Subject: [PATCH] Fix compilation warning in macros.nim Fixes: > macros.nim(1423, 35) Warning: `typed` will change its meaning in future versions of Nim. `void` or no return type declaration at all has the same meaning as the current meaning of `typed` as return type declaration. [Deprecated] --- lib/core/macros.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 0892ad434b..fa8a682ad5 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -1420,7 +1420,7 @@ proc boolVal*(n: NimNode): bool {.compileTime, noSideEffect.} = if n.kind == nnkIntLit: n.intVal != 0 else: n == bindSym"true" # hacky solution for now -macro expandMacros*(body: typed): typed = +macro expandMacros*(body: typed): untyped = ## Expands one level of macro - useful for debugging. ## Can be used to inspect what happens when a macro call is expanded, ## without altering its result.