parent
dc5c88ca79
commit
ac37eed5a2
1 changed files with 2 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ proc typeAllowedAux(marker: var IntSet, typ: PType, kind: TSymKind,
|
||||||
of tyVar, tyLent:
|
of tyVar, tyLent:
|
||||||
if kind in {skProc, skFunc, skConst} and (views notin c.features):
|
if kind in {skProc, skFunc, skConst} and (views notin c.features):
|
||||||
result = t
|
result = t
|
||||||
|
elif taIsOpenArray in flags:
|
||||||
|
result = t
|
||||||
elif t.kind == tyLent and ((kind != skResult and views notin c.features) or
|
elif t.kind == tyLent and ((kind != skResult and views notin c.features) or
|
||||||
kind == skParam): # lent can't be used as parameters.
|
kind == skParam): # lent can't be used as parameters.
|
||||||
result = t
|
result = t
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue