Skip to content

Commit cc91d43

Browse files
committed
Fix assignment of RunIds - make sure they'll start with 1 == InitialRunId instead of 2
1 parent 1c7775d commit cc91d43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ class Compiler {
151151
List(new GenBCode) :: // Generate JVM bytecode
152152
Nil
153153

154-
var runId: Int = 1
154+
// Initially 0, so that the first nextRunId call would return InitialRunId == 1
155+
private var runId: Int = 0
155156
def nextRunId: Int = {
156157
runId += 1; runId
157158
}

0 commit comments

Comments
 (0)