Allow typeof(nil) as generic parameter (#11869)
This commit is contained in:
parent
50e921bb94
commit
bcfb540e57
2 changed files with 11 additions and 4 deletions
|
|
@ -340,8 +340,6 @@ proc typeRel*(c: var TCandidate, f, aOrig: PType,
|
|||
|
||||
proc concreteType(c: TCandidate, t: PType; f: PType = nil): PType =
|
||||
case t.kind
|
||||
of tyNil:
|
||||
result = nil # what should it be?
|
||||
of tyTypeDesc:
|
||||
if c.isNoCall: result = t
|
||||
else: result = nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue