Skip to content

Odd behaviour of RangePositions in the compiler

Jean-Remi Desjardins edited this page Jan 22, 2014 · 1 revision

You used this patch to fix an odd issue with Scala Range Positions

Possibly will never ever be useful again but what the heck:

--- a/src/compiler/scala/tools/nsc/interactive/RangePositions.scala +++ b/src/compiler/scala/tools/nsc/interactive/RangePositions.scala @@ -242,7 +242,7 @@ self: scala.tools.nsc.Global => } }

  • if (phase.id <= currentRun.typerPhase.id)
  • if (/phase.id <= currentRun.typerPhase.id/false) validate(tree, tree) }
Clone this wiki locally