Merge branch 'devel' into uint-range-checks

This commit is contained in:
Andreas Rumpf 2019-09-02 22:03:10 +02:00
commit ac6fcab7a4
18 changed files with 123 additions and 51 deletions

View file

@ -1309,7 +1309,7 @@ proc typeAllowedAux(marker: var IntSet, typ: PType, kind: TSymKind,
tyNone, tyForward, tyFromExpr:
result = t
of tyNil:
if kind != skConst and kind != skParam and kind != skResult: result = t
if kind != skConst and kind != skParam: result = t
of tyString, tyBool, tyChar, tyEnum, tyInt..tyUInt64, tyCString, tyPointer:
result = nil
of tyOrdinal: