diff options
author | Andrea Ferretti <ferrettiandrea@gmail.com> | 2016-09-22 12:07:36 +0200 |
---|---|---|
committer | Andrea Ferretti <ferrettiandrea@gmail.com> | 2016-09-22 12:07:36 +0200 |
commit | 15f7094fde2a5677b6566dfa1a883237cac676ec (patch) | |
tree | 75fbb6fc9759a0433c9f6ca84c0077279c940ebe /tests/macros | |
parent | 723bc158cea494d3479573819f3e86ce0667409e (diff) | |
download | Nim-15f7094fde2a5677b6566dfa1a883237cac676ec.tar.gz |
Added a dump macro for debugging
Diffstat (limited to 'tests/macros')
-rw-r--r-- | tests/macros/tdump.nim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/macros/tdump.nim b/tests/macros/tdump.nim new file mode 100644 index 000000000..e4c14dc6b --- /dev/null +++ b/tests/macros/tdump.nim @@ -0,0 +1,13 @@ +discard """ + output: '''x = 10 +x + y = 30 +''' +""" + +import future + +let + x = 10 + y = 20 +dump x +dump(x + y) \ No newline at end of file |