changes how the now illegal 'string == nil' comparison is detected
This commit is contained in:
parent
94684488d6
commit
0da91aa744
5 changed files with 12 additions and 7 deletions
|
|
@ -1200,7 +1200,7 @@ proc typeAllowedAux(marker: var IntSet, typ: PType, kind: TSymKind,
|
|||
tyNone, tyForward, tyFromExpr:
|
||||
result = t
|
||||
of tyNil:
|
||||
if kind != skConst: result = t
|
||||
if kind != skConst and kind != skParam: result = t
|
||||
of tyString, tyBool, tyChar, tyEnum, tyInt..tyUInt64, tyCString, tyPointer:
|
||||
result = nil
|
||||
of tyOrdinal:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue