From a8efb284a8e34ce7afbf19bd6ad4a9abd830e601 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 3 Oct 2017 23:11:30 +0200 Subject: [PATCH] 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. --- compiler/src/dotty/tools/dotc/core/tasty/TastyFormat.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TastyFormat.scala b/compiler/src/dotty/tools/dotc/core/tasty/TastyFormat.scala index e0113d63a3f5..21f78d633e7d 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TastyFormat.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TastyFormat.scala @@ -230,8 +230,8 @@ Standard Section: "Positions" Assoc* object TastyFormat { final val header = Array(0x5C, 0xA1, 0xAB, 0x1F) - final val MajorVersion = 1 - final val MinorVersion = 0 + val MajorVersion = 1 + val MinorVersion = 0 // Name tags