This commit is contained in:
Juan Carlos 2020-10-01 07:39:50 -03:00 • committed by GitHub
commit 79a92da8ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -186,10 +186,6 @@ proc freshIdentNodes(ast: NimNode): NimNode =
result.add inspect(child)
result = inspect(ast)
template distinctBase*(T: typedesc): typedesc {.deprecated: "use distinctBase from typetraits instead".} =
## reverses ``type T = distinct A``; works recursively.
typetraits.distinctBase(T)
macro capture*(locals: varargs[typed], body: untyped): untyped {.since: (1, 1).} =
## Useful when creating a closure in a loop to capture some local loop variables
## by their current iteration values. Example: