From 2fe26403e7c20d4ca0662c2b7adea4b0eb86f78f Mon Sep 17 00:00:00 2001 From: Ethan Atkins Date: Thu, 13 Jun 2019 14:28:11 -0700 Subject: [PATCH] Add test for using switch version in multi command I noticed that in 1.3.0-RC2, the following commands worked: ++2.11.12 ;test ;++2.11.12;test but ++2.11.12; test did not. This issue is fixed in the next commit. --- sbt/src/sbt-test/actions/cross-multi-parser/build.sbt | 1 + .../cross-multi-parser/src/main/scala/cross/Build.scala | 3 +++ sbt/src/sbt-test/actions/cross-multi-parser/test | 5 +++++ 3 files changed, 9 insertions(+) create mode 100644 sbt/src/sbt-test/actions/cross-multi-parser/build.sbt create mode 100644 sbt/src/sbt-test/actions/cross-multi-parser/src/main/scala/cross/Build.scala create mode 100644 sbt/src/sbt-test/actions/cross-multi-parser/test diff --git a/sbt/src/sbt-test/actions/cross-multi-parser/build.sbt b/sbt/src/sbt-test/actions/cross-multi-parser/build.sbt new file mode 100644 index 000000000..1d47987b5 --- /dev/null +++ b/sbt/src/sbt-test/actions/cross-multi-parser/build.sbt @@ -0,0 +1 @@ +crossScalaVersions := Seq[String]("2.11.12", "2.12.8") diff --git a/sbt/src/sbt-test/actions/cross-multi-parser/src/main/scala/cross/Build.scala b/sbt/src/sbt-test/actions/cross-multi-parser/src/main/scala/cross/Build.scala new file mode 100644 index 000000000..e6dcf2377 --- /dev/null +++ b/sbt/src/sbt-test/actions/cross-multi-parser/src/main/scala/cross/Build.scala @@ -0,0 +1,3 @@ +package cross + +object Build \ No newline at end of file diff --git a/sbt/src/sbt-test/actions/cross-multi-parser/test b/sbt/src/sbt-test/actions/cross-multi-parser/test new file mode 100644 index 000000000..df8b309d2 --- /dev/null +++ b/sbt/src/sbt-test/actions/cross-multi-parser/test @@ -0,0 +1,5 @@ +> ++2.11.12; compile + +> ++ 2.12.8 ; compile; + +> ++ 2.12.8 ; compile