Skip to content

Commit 1ff85dc

Browse files
liufengyunolhotak
andauthored
Update compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
Co-authored-by: Ondřej Lhoták <[email protected]>
1 parent de2c072 commit 1ff85dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ object Semantic:
11461146
private val pendingTasks: mutable.ArrayBuffer[Task] = new mutable.ArrayBuffer
11471147

11481148
def addTask(task: Task): Unit =
1149-
if !pendingTasks.contains(task) then pendingTasks += task
1149+
if !pendingTasks.contains(task) then pendingTasks.append(task)
11501150

11511151
/** Process the worklist until done */
11521152
final def work()(using Cache, Context): Unit =

0 commit comments

Comments
 (0)