diff options
author | Araq <rumpf_a@web.de> | 2017-02-16 00:43:14 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-16 11:15:43 +0100 |
commit | 71026cec6e28d89677be0b5b3db4f8f79ee4bb3e (patch) | |
tree | 73bdf98c023f3f13b93ace22a63e1bb47035a213 /compiler/ast.nim | |
parent | 8de6c39f87be3afa0b997a80b9124e42e4741d73 (diff) | |
download | Nim-71026cec6e28d89677be0b5b3db4f8f79ee4bb3e.tar.gz |
fixes #5383
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r-- | compiler/ast.nim | 3 |
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 |