summary refs log tree commit diff stats
path: root/tests/parser
diff options
context:
space:
mode:
authorhlaaftana <10591326+hlaaftana@users.noreply.github.com>2020-05-08 08:54:46 +0300
committerGitHub <noreply@github.com>2020-05-08 07:54:46 +0200
commitde27910ab72dca681188953ae963802520271e43 (patch)
tree7ba0e839a7d659004ae9beb87d07bea31ee7e2fe /tests/parser
parent5fa7d374c4cb777372cf5b967575f228bda23c2b (diff)
downloadNim-de27910ab72dca681188953ae963802520271e43.tar.gz
make `from` an operator (#14241)
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/tstatementoperators.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/parser/tstatementoperators.nim b/tests/parser/tstatementoperators.nim
new file mode 100644
index 000000000..d2b85bb4b
--- /dev/null
+++ b/tests/parser/tstatementoperators.nim
@@ -0,0 +1,12 @@
+discard """
+  nimout: '''
+Infix
+  Ident "from"
+  Ident "a"
+  Ident "b"
+'''
+"""
+
+from macros import dumpTree
+
+dumpTree(a from b)
\ No newline at end of file