summary refs log tree commit diff stats
path: root/tests/parser
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2019-03-21 05:48:54 +0000
committerAndreas Rumpf <rumpf_a@web.de>2019-03-21 06:48:54 +0100
commit28a926cb679100414a71bb8aefe349c5bdf69b26 (patch)
tree0a90f4db94ca764b17c20460588ba5f69e31573d /tests/parser
parent67e91558cf2e6072aa2754ef37e62964f36b52a7 (diff)
downloadNim-28a926cb679100414a71bb8aefe349c5bdf69b26.tar.gz
fixes #10861 (#10877)
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/tletcolon.nim16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/parser/tletcolon.nim b/tests/parser/tletcolon.nim
index 7eaa5e3e5..a2dde148a 100644
--- a/tests/parser/tletcolon.nim
+++ b/tests/parser/tletcolon.nim
@@ -58,4 +58,18 @@ block:
     var y = 2
     echo "block expression works"
     y*y
-  doAssert x == 4
\ No newline at end of file
+  doAssert x == 4
+
+
+# bug 10861
+macro foo(a: untyped): untyped = 
+  a             
+
+let c1 = foo:
+  1 + 1
+
+const c2 = foo:
+  1 + 1
+
+const c3 = 
+  foo: 1 + 1