pass-through of static int generic params to arrays when late instantiation is disabled
This commit is contained in:
parent
fee2a7ecfa
commit
8682ed9bd0
8 changed files with 31 additions and 18 deletions
|
|
@ -622,7 +622,8 @@ proc typeRel(c: var TCandidate, f, a: PType): TTypeRelation =
|
|||
of tyGenericParam, tyTypeClass:
|
||||
var x = PType(idTableGet(c.bindings, f))
|
||||
if x == nil:
|
||||
if c.calleeSym.kind == skType and f.kind == tyGenericParam and not c.typedescMatched:
|
||||
if c.calleeSym != nil and c.calleeSym.kind == skType and
|
||||
f.kind == tyGenericParam and not c.typedescMatched:
|
||||
# XXX: The fact that generic types currently use tyGenericParam for
|
||||
# their parameters is really a misnomer. tyGenericParam means "match
|
||||
# any value" and what we need is "match any type", which can be encoded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue