Skip to content

Commit 1424f9b

Browse files
committed
dep: bump sbt to 1.9.0-RC3 for tests
1 parent cde8150 commit 1424f9b

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ final case class SbtCommunityProject(
140140
case Some(ivyHome) => List(s"-Dsbt.ivy.home=$ivyHome")
141141
case _ => Nil
142142
extraSbtArgs ++ sbtProps ++ List(
143-
"-sbt-version", "1.8.2",
143+
"-sbt-version", "1.9.0-RC3",
144144
"-Dsbt.supershell=false",
145145
s"-Ddotty.communitybuild.dir=$communitybuildDir",
146146
s"--addPluginSbtFile=$sbtPluginFilePath"

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.8.2
1+
sbt.version=1.9.0-RC3

sbt-test/compilerReporter/simple/project/Reporter.scala

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import sbt._
22
import Keys._
33
import KeyRanks.DTask
44

5+
import scala.jdk.CollectionConverters.*
6+
57
object Reporter {
68
import xsbti.{Reporter, Problem, Position, Severity}
79

@@ -67,13 +69,17 @@ object Reporter {
6769

6870
assert(warning.severity == Severity.Warn) // Only function types can be followed by _ but the current expression has type Int
6971

70-
//val actions = warning.actions()
72+
val actions = warning.actions().asScala.toList
73+
74+
assert(actions.size == 1)
75+
76+
val action = actions.head
7177

72-
//assert(actions.size == 1)
78+
assert(action.title() == "Rewrite to function value")
7379

74-
//val action = actions.head
80+
val edits = action.edit().changes().asScala.toList
7581

76-
//assert(action.title() == "wrong")
82+
assert(edits.size == 2)
7783

7884
case somethingElse =>
7985
assert(false, s"Only expected to have a single error and a single warning, but instead got: ${somethingElse.toString}")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.8.2
1+
sbt.version=1.9.0-RC3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.8.2
1+
sbt.version=1.9.0-RC3

0 commit comments

Comments
 (0)