* fixes #20155; repr range with distinct types is broken with ORC * skipRanges
This commit is contained in:
parent
9b9f24f01b
commit
37b3f62eef
3 changed files with 10 additions and 1 deletions
|
|
@ -190,6 +190,9 @@ proc evalTypeTrait(c: PContext; traitCall: PNode, operand: PType, context: PSym)
|
|||
arg = arg.base.skipTypes(skippedTypes + {tyGenericInst})
|
||||
if not rec: break
|
||||
result = getTypeDescNode(c, arg, operand.owner, traitCall.info)
|
||||
of "skipRanges":
|
||||
var arg = operand.skipTypes({tyRange})
|
||||
result = getTypeDescNode(c, arg, operand.owner, traitCall.info)
|
||||
else:
|
||||
localError(c.config, traitCall.info, "unknown trait: " & s)
|
||||
result = newNodeI(nkEmpty, traitCall.info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue