We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56ad4b1 + 9e9206d commit de2c447Copy full SHA for de2c447
compiler/src/dotty/tools/dotc/ast/Positioned.scala
@@ -123,6 +123,8 @@ abstract class Positioned extends DotClass with Product {
123
124
private def unionPos(pos: Position, xs: List[_]): Position = xs match {
125
case (p: Positioned) :: xs1 => unionPos(pos union p.pos, xs1)
126
+ case (xs0: List[_]) :: xs1 => unionPos(unionPos(pos, xs0), xs1)
127
+ case _ :: xs1 => unionPos(pos, xs1)
128
case _ => pos
129
}
130
0 commit comments