aboutsummaryrefslogtreecommitdiff
path: root/sbt-bridge/sbt-test/source-dependencies/linearization/test
diff options
context:
space:
mode:
Diffstat (limited to 'sbt-bridge/sbt-test/source-dependencies/linearization/test')
-rw-r--r--sbt-bridge/sbt-test/source-dependencies/linearization/test13
1 files changed, 13 insertions, 0 deletions
diff --git a/sbt-bridge/sbt-test/source-dependencies/linearization/test b/sbt-bridge/sbt-test/source-dependencies/linearization/test
new file mode 100644
index 000000000..e6078ebfb
--- /dev/null
+++ b/sbt-bridge/sbt-test/source-dependencies/linearization/test
@@ -0,0 +1,13 @@
+> compile
+
+# the value of F.x should be 16
+> run 16
+
+# modify D.scala so that the linearization changes
+$ copy-file changes/D.scala D.scala
+# F.x becomes 11
+> compile
+
+# if F is recompiled, the value of x should be 11, otherwise it will still be 16
+# and this will fail
+> run 11 \ No newline at end of file