summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-02-16 00:43:14 +0100
committerAraq <rumpf_a@web.de>2017-02-16 11:15:43 +0100
commit71026cec6e28d89677be0b5b3db4f8f79ee4bb3e (patch)
tree73bdf98c023f3f13b93ace22a63e1bb47035a213 /compiler/ast.nim
parent8de6c39f87be3afa0b997a80b9124e42e4741d73 (diff)
downloadNim-71026cec6e28d89677be0b5b3db4f8f79ee4bb3e.tar.gz
fixes #5383
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r--compiler/ast.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index 8fbec64cf..4ea68dc99 100644
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -1541,8 +1541,7 @@ proc skipGenericOwner*(s: PSym): PSym =
   ## Generic instantiations are owned by their originating generic
   ## symbol. This proc skips such owners and goes straight to the owner
   ## of the generic itself (the module or the enclosing proc).
-  result = if s.kind in skProcKinds and {sfGenSym, sfFromGeneric} * s.flags ==
-                                                  {sfFromGeneric}:
+  result = if s.kind in skProcKinds and sfFromGeneric in s.flags:
              s.owner.owner
            else:
              s.owner