Incremental compilation of constant folding

This commit is contained in:
Eugene Yokota 2021-09-19 19:51:01 -04:00
parent f6b993f91b
commit 4370bc29ba
2 changed files with 16 additions and 12 deletions

View File

@ -1,12 +0,0 @@
# Marked as pending, see https://github.com/sbt/sbt/issues/1543
# Tests if source dependencies are tracked properly
# for compile-time constants (like final vals in top-level objects)
# see https://issues.scala-lang.org/browse/SI-7173 for details
# why compile-time constants can be tricky to track due to early inlining
$ copy-file changes/B.scala B.scala
$ copy-file changes/A1.scala A.scala
> run 1
$ copy-file changes/A2.scala A.scala
> run 2

View File

@ -0,0 +1,16 @@
> ++2.12.15!
$ copy-file changes/B.scala B.scala
$ copy-file changes/A1.scala A.scala
> run 1
$ copy-file changes/A2.scala A.scala
> run 2
> clean
> ++2.13.6!
$ copy-file changes/A1.scala A.scala
> run 1
$ copy-file changes/A2.scala A.scala
> run 2