summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorhlaaftana <10591326+hlaaftana@users.noreply.github.com>2021-11-24 18:34:42 +0300
committerGitHub <noreply@github.com>2021-11-24 16:34:42 +0100
commitf91867aa31f3ae2c4f28d24547d62603daaa6d0c (patch)
treebd1b3a86fadcb4094c686ff452254df7ce4a43a8 /compiler
parenta59ad2006291eafcd6790f3011b5cd355b219a5b (diff)
downloadNim-f91867aa31f3ae2c4f28d24547d62603daaa6d0c.tar.gz
accept object type node from macros (#19179)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index c11cecfa9..0df332689 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -2856,7 +2856,7 @@ proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode =
   of nkBind:
     message(c.config, n.info, warnDeprecated, "bind is deprecated")
     result = semExpr(c, n[0], flags)
-  of nkTypeOfExpr, nkTupleTy, nkTupleClassTy, nkRefTy..nkEnumTy, nkStaticTy:
+  of nkTypeOfExpr..nkTupleClassTy, nkStaticTy, nkRefTy..nkEnumTy:
     if c.matchedConcept != nil and n.len == 1:
       let modifier = n.modifierTypeKindOfNode
       if modifier != tyNone: