diff options
Diffstat (limited to 'src/dotty/tools/dotc/util/Positions.scala')
-rw-r--r-- | src/dotty/tools/dotc/util/Positions.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/util/Positions.scala b/src/dotty/tools/dotc/util/Positions.scala index 334a3deb6..6dfb78c87 100644 --- a/src/dotty/tools/dotc/util/Positions.scala +++ b/src/dotty/tools/dotc/util/Positions.scala @@ -62,8 +62,7 @@ object Positions { /** Does the range of this position contain the one of that position? */ def contains(that: Position): Boolean = - if (exists) (start <= that.start && end >= that.end) - else !that.exists + !that.exists || exists && (start <= that.start && end >= that.end) /** Is this position synthetic? */ def isSynthetic = pointDelta == SyntheticPointDelta |