diff options
author | Don-Duong Quach <geekrelief@gmail.com> | 2021-11-03 08:47:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-03 16:47:31 +0100 |
commit | f2f15e972645496f901fcfde197048de368453d6 (patch) | |
tree | 64ace5402d29c2ffa9cda1f5d5aeabe37bb668e2 /lib/core | |
parent | b2edc3468cf0857b337bff09cb68649d49803ccf (diff) | |
download | Nim-f2f15e972645496f901fcfde197048de368453d6.tar.gz |
fix for #19020, credit to @ElegantBeef (#19021)
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/macros.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 806ea7e31..6dbb92875 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -1611,7 +1611,7 @@ macro getCustomPragmaVal*(n: typed, cp: typed{nkSym}): untyped = let pragmaNode = customPragmaNode(n) for p in pragmaNode: if p.kind in nnkPragmaCallKinds and p.len > 0 and p[0].kind == nnkSym and p[0] == cp: - if p.len == 2: + if p.len == 2 or (p.len == 3 and p[1].kind == nnkSym and p[1].symKind == nskType): result = p[1] else: let def = p[0].getImpl[3] |