Skip to content

Commit 3810efa

Browse files
committed
build and test against scala 3.7.1
1 parent 1781ac5 commit 3810efa

File tree

12 files changed

+57
-2
lines changed

12 files changed

+57
-2
lines changed

bin/test-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version=$1
66
scala212=2.12.20
77
scala213=2.13.16
88
scala3LTS=3.3.6
9-
scala3Next=3.7.0
9+
scala3Next=3.7.1-RC2
1010

1111
cs resolve \
1212
ch.epfl.scala:scalafix-interfaces:$version \

project/Dependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object Dependencies {
1010
val scala33 = "3.3.6"
1111
val scala35 = "3.5.2"
1212
val scala36 = "3.6.4"
13-
val scala37 = "3.7.0"
13+
val scala37 = "3.7.1-RC2"
1414
val scala3LTS = scala33
1515
val scala3Next = sys.props.getOrElse("scala3.nightly", scala37)
1616

project/ScalafixBuild.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys {
244244
)
245245

246246
private val PreviousScalaVersion: Map[String, Option[String]] = Map(
247+
scala37 -> Some("3.7.0")
247248
)
248249

249250
override def buildSettings: Seq[Setting[_]] = List(
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
rules = ExplicitResultTypes
3+
*/
4+
package test.explicitResultTypes
5+
6+
object EnumerationValue {
7+
object Day extends Enumeration {
8+
type Day = Value
9+
val Weekday, Weekend = Value
10+
}
11+
object Bool extends Enumeration {
12+
type Bool = Value
13+
val True, False = Value
14+
}
15+
import Bool._
16+
def day(d: Day.Value): Unit = ???
17+
val d =
18+
if (true) Day.Weekday
19+
else Day.Weekend
20+
day(d)
21+
val b =
22+
if (true) True
23+
else False
24+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
rules = "ExplicitResultTypes"
3+
ExplicitResultTypes.skipSimpleDefinitions = ["Lit"]
4+
*/
5+
package test.explicitResultTypes
6+
7+
object ExplicitResultTypesNil {
8+
val nil = Nil
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
rules = "ExplicitResultTypes"
3+
ExplicitResultTypes.skipSimpleDefinitions = ["Lit"]
4+
*/
5+
package test.explicitResultTypes
6+
7+
object ExplicitResultTypesNil {
8+
val nil = Nil
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
package test.explicitResultTypes
3+
4+
object ExplicitResultTypesNil {
5+
val nil: Nil.type = Nil
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
package test.explicitResultTypes
3+
4+
object ExplicitResultTypesNil {
5+
val nil: scala.collection.immutable.Nil.type = Nil
6+
}

0 commit comments

Comments
 (0)