diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-10-27 15:37:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-27 15:37:34 +0200 |
commit | cacbf8b32c7b910eeb6b8b5d37adf2a7dd2f343c (patch) | |
tree | faddd5fb0ea8009db010f75c8bdff642ab5e4c2e /tests | |
parent | 38ad7400fa4ecc475b587456770e4d981dc9d037 (diff) | |
parent | 74c6500a30b99fde9af5d17a87723dcf18309964 (diff) | |
download | Nim-cacbf8b32c7b910eeb6b8b5d37adf2a7dd2f343c.tar.gz |
Merge pull request #4963 from jangko/macro_error_improvement
Macro.error improvement fixes #4915
Diffstat (limited to 'tests')
-rw-r--r-- | tests/clearmsg/tmacroerrorproc.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/clearmsg/tmacroerrorproc.nim b/tests/clearmsg/tmacroerrorproc.nim new file mode 100644 index 000000000..9a6ff6a06 --- /dev/null +++ b/tests/clearmsg/tmacroerrorproc.nim @@ -0,0 +1,13 @@ +discard """ + file: "tmacroerrorproc.nim" + line: 13 + errormsg: "Expected a node of kind nnkCharLit, got nnkCommand" +""" +# issue #4915 +import macros + +macro mixer(n: typed): untyped = + expectKind(n, nnkCharLit) + +mixer: + echo "owh" \ No newline at end of file |