diff options
author | Kaushal Modi <kaushal.modi@gmail.com> | 2019-07-16 10:32:56 -0400 |
---|---|---|
committer | Kaushal Modi <kaushal.modi@gmail.com> | 2019-07-16 15:03:44 -0400 |
commit | dcbb2d66da24094f6d6699294406431debc51dd9 (patch) | |
tree | a8d4aff3ce62af3dda8b6f38187b3eead9053297 /lib/core | |
parent | 102b71f42e699afa1c319bd56cb44fbb22507cc0 (diff) | |
download | Nim-dcbb2d66da24094f6d6699294406431debc51dd9.tar.gz |
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]
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/macros.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 0892ad434..fa8a682ad 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. |