summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2022-10-17 23:48:51 +0200
committerGitHub <noreply@github.com>2022-10-17 23:48:51 +0200
commit81087c949f620dc80697364da414872791ffe23c (patch)
tree870c578d221484861f485371ebde2fca18d6ca08 /lib
parentc0824b9b80f50807fc41b621760c4b685d1d7497 (diff)
downloadNim-81087c949f620dc80697364da414872791ffe23c.tar.gz
fixes #20572 (#20585)
* fixes #20572

* added a test case
Diffstat (limited to 'lib')
-rw-r--r--lib/core/macros.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index d09ea2fe2..b26264405 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -79,7 +79,7 @@ type
     nnkDistinctTy,
     nnkProcTy,
     nnkIteratorTy,         # iterator type
-    nnkSharedTy,           # 'shared T'
+    nnkSinkAsgn,
     nnkEnumTy,
     nnkEnumFieldDef,
     nnkArgList, nnkPattern
@@ -127,6 +127,7 @@ type
 
 const
   nnkMutableTy* {.deprecated.} = nnkOutTy
+  nnkSharedTy* {.deprecated.} = nnkSinkAsgn
 
 type
   NimIdent* {.deprecated.} = object of RootObj
> 144 145 146 147 148 149 150 151 152