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.
1 parent 6044a54 commit 69957bbCopy full SHA for 69957bb
compiler/src/dotty/tools/dotc/ast/Positioned.scala
@@ -34,7 +34,7 @@ abstract class Positioned extends DotClass with Product {
34
* destructively and the item itself is returned.
35
*/
36
def withPos(pos: Position): this.type = {
37
- val newpd = (if (pos == curPos || curPos.isSynthetic) this else clone).asInstanceOf[Positioned]
+ val newpd = (if (pos == curPos || curPos.isSynthetic) this else clone.asInstanceOf[Positioned])
38
newpd.setPos(pos)
39
newpd.asInstanceOf[this.type]
40
}
0 commit comments