diff options
author | Clay Sweetser <Varriount@users.noreply.github.com> | 2022-09-11 16:56:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 16:56:11 -0400 |
commit | 8850644cb750c3134f3ae2d54a5d76262888de11 (patch) | |
tree | ca1091caf90664ba71c24e68de470a7db2eb37e5 /compiler | |
parent | 37b3f62eef16b0e7cb89e18f9ddc1fb96e17fb1b (diff) | |
download | Nim-8850644cb750c3134f3ae2d54a5d76262888de11.tar.gz |
Revert "fixes #20155; repr range with distinct types is broken with ORC" (#20334)
Revert "fixes #20155; repr range with distinct types is broken with ORC (#20158)" This reverts commit 37b3f62eef16b0e7cb89e18f9ddc1fb96e17fb1b.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semmagic.nim | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/semmagic.nim b/compiler/semmagic.nim index a6832de50..d3e12670b 100644 --- a/compiler/semmagic.nim +++ b/compiler/semmagic.nim @@ -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) |