aboutsummaryrefslogtreecommitdiff
path: root/sbt-bridge/sbt-test/source-dependencies/constants/test
diff options
context:
space:
mode:
Diffstat (limited to 'sbt-bridge/sbt-test/source-dependencies/constants/test')
-rw-r--r--sbt-bridge/sbt-test/source-dependencies/constants/test12
1 files changed, 12 insertions, 0 deletions
diff --git a/sbt-bridge/sbt-test/source-dependencies/constants/test b/sbt-bridge/sbt-test/source-dependencies/constants/test
new file mode 100644
index 000000000..7a5ae5879
--- /dev/null
+++ b/sbt-bridge/sbt-test/source-dependencies/constants/test
@@ -0,0 +1,12 @@
+# 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