Skip to content

Commit a8efb28

Browse files
committed
TastyFormat: Don't use final vals for MajorVersion/MinorVersion
Because sbt incremental compilation for scalac is broken for final vals, so the dotty-library-bootstrapped compiled by the non-bootstrapped dotty-compiler may have an old MajorVersion/MinorVersion unless you do `clean` first.
1 parent 432ceac commit a8efb28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TastyFormat.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ Standard Section: "Positions" Assoc*
230230
object TastyFormat {
231231

232232
final val header = Array(0x5C, 0xA1, 0xAB, 0x1F)
233-
final val MajorVersion = 1
234-
final val MinorVersion = 0
233+
val MajorVersion = 1
234+
val MinorVersion = 0
235235

236236
// Name tags
237237

0 commit comments

Comments
 (0)