diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-10-15 12:52:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 12:52:30 +0200 |
commit | da4aa2e1fb8b0084fcf03b85edf4a5c1d0170856 (patch) | |
tree | 4d8fe99314d844bb7b44377568eebfd7b86e7f92 /compiler/ast.nim | |
parent | 42c180c665cb283bcb07e078a5ff91c69c84fa62 (diff) | |
download | Nim-da4aa2e1fb8b0084fcf03b85edf4a5c1d0170856.tar.gz |
renamed '=' to '=copy' [backport:1.2] (#15585)
* Assign hook name changed to `=copy` * Adapt destructors.rst * [nobackport] Duplicate tests for =copy hook * Fix tests * added a changelog entry Co-authored-by: Clyybber <darkmine956@gmail.com>
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r-- | compiler/ast.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim index 8adbfa15c..f796e64c2 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -1331,7 +1331,7 @@ const MaxLockLevel* = 1000'i16 UnknownLockLevel* = TLockLevel(1001'i16) AttachedOpToStr*: array[TTypeAttachedOp, string] = [ - "=destroy", "=", "=sink", "=trace", "=dispose", "=deepcopy"] + "=destroy", "=copy", "=sink", "=trace", "=dispose", "=deepcopy"] proc `$`*(x: TLockLevel): string = if x.ord == UnspecifiedLockLevel.ord: result = "<unspecified>" |