diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-05-11 19:38:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 19:38:27 +0800 |
commit | 3b9999b93c35ff3e61b0a9848fdeb23083c89eb3 (patch) | |
tree | 8dfbca16eef724d6d276e977fc8d45b833d43449 /compiler/semstmts.nim | |
parent | fa5e7dc44aaf0060bd72e2555c40b90bb9138730 (diff) | |
download | Nim-3b9999b93c35ff3e61b0a9848fdeb23083c89eb3.tar.gz |
adds documentation for `=wasMoved` and `=dup` hooks and small fixes (#21827)
* adds documentation for `=wasMoved` and `=dup` hooks and small fixes * Update doc/destructors.md * Update doc/destructors.md --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r-- | compiler/semstmts.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index 126d1aa65..f81423915 100644 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -1819,7 +1819,7 @@ proc bindTypeHook(c: PContext; s: PSym; n: PNode; op: TTypeAttachedOp) = of {attachedDestructor, attachedWasMoved}: t.len == 2 and t[0] == nil and t[1].kind == tyVar of attachedDup: - t.len == 2 and t[0] != nil and t[1].kind == tyVar + t.len == 2 and t[0] != nil of attachedTrace: t.len == 3 and t[0] == nil and t[1].kind == tyVar and t[2].kind == tyPointer else: |