Fix sugar.dump: It doesn't work correctly with compile time expression (#14580)

This commit is contained in:
Tomohiro 2020-06-08 17:28:42 +09:00 • committed by GitHub
commit 733bd76f6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,7 +150,7 @@ macro `->`*(p, b: untyped): untyped =
result = createProcType(p, b) result = createProcType(p, b)
macro dump*(x: typed): untyped = macro dump*(x: untyped): untyped =
## Dumps the content of an expression, useful for debugging. ## Dumps the content of an expression, useful for debugging.
## It accepts any expression and prints a textual representation ## It accepts any expression and prints a textual representation
## of the tree representing the expression - as it would appear in ## of the tree representing the expression - as it would appear in