diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-11-03 19:11:10 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-11-03 19:11:10 +0100 |
commit | ae27f8ac583f03969f4c74512bae68e8dc9fd40b (patch) | |
tree | b59bd43ac656456d1ffe8ae7c0939a58164e6ff6 | |
parent | c739b9192ff396589737530ed0fb4974fcfe679c (diff) | |
download | Nim-ae27f8ac583f03969f4c74512bae68e8dc9fd40b.tar.gz |
fixes #9611
-rw-r--r-- | compiler/semtypes.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 5215a1d11..b0b7178fa 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -1621,8 +1621,7 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType = result = prev of nkSym: let s = getGenSym(c, n.sym) - if s.kind == skType and s.typ != nil or - s.kind == skParam and s.typ.kind == tyTypeDesc: + if s.typ != nil and (s.kind == skType or s.typ.kind == tyTypeDesc): var t = if s.kind == skType: s.typ |