Revert "fixes #20155; repr range with distinct types is broken with ORC (#20158)"
This reverts commit 37b3f62eef.
This commit is contained in:
parent
37b3f62eef
commit
8850644cb7
3 changed files with 1 additions and 10 deletions
|
|
@ -190,9 +190,6 @@ 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