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 cc78467 commit f6b49dfCopy full SHA for f6b49df
compiler/src/dotty/tools/dotc/rewrites/Rewrites.scala
@@ -32,7 +32,7 @@ object Rewrites {
32
case class ActionPatch(srcPos: SourcePosition, replacement: String)
33
34
private class Patches(source: SourceFile) {
35
- private[Rewrites] val pbuf = mutable.ListBuffer.empty[Patch]
+ private[Rewrites] val pbuf = new mutable.ListBuffer[Patch]()
36
37
def addPatch(span: Span, replacement: String): Unit =
38
pbuf += Patch(span, replacement)
0 commit comments