Added a dump macro for debugging
This commit is contained in:
parent
723bc158ce
commit
15f7094fde
2 changed files with 34 additions and 0 deletions
13
tests/macros/tdump.nim
Normal file
13
tests/macros/tdump.nim
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
discard """
|
||||
output: '''x = 10
|
||||
x + y = 30
|
||||
'''
|
||||
"""
|
||||
|
||||
import future
|
||||
|
||||
let
|
||||
x = 10
|
||||
y = 20
|
||||
dump x
|
||||
dump(x + y)
|
||||
Loading…
Add table
Add a link
Reference in a new issue