Skip to content

Commit 6f15ee0

Browse files
authored
Merge pull request #157 from som-snytt/issue/upgrade
Bump to 2.13.7 fixing incompats
2 parents 5607ddb + adc46f6 commit 6f15ee0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
java: [8, 11, 17]
13-
scala: [2.13.6]
13+
scala: [2.13.7]
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ThisBuild / scalaVersion := "2.13.6"
1+
ThisBuild / scalaVersion := "2.13.7"
22

33
lazy val root = project.in(file("."))
44
.aggregate(collectionContrib.jvm, collectionContrib.js)
@@ -17,8 +17,8 @@ lazy val collectionContrib = crossProject(JVMPlatform, JSPlatform)
1717
name := "scala-collection-contrib",
1818
versionPolicyIntention := Compatibility.BinaryCompatible,
1919
scalaModuleAutomaticModuleName := Some("scala.collection.contrib"),
20-
scalacOptions ++= Seq("-opt-warnings", "-language:higherKinds", "-deprecation", "-feature", "-Xfatal-warnings"),
21-
Compile / doc / scalacOptions ++= Seq("-implicits", "-groups"),
20+
Compile / compile / scalacOptions ++= Seq("-opt-warnings", "-language:higherKinds", "-deprecation", "-feature", "-Xfatal-warnings", "-Wconf:origin=scala.collection.IterableOps.toIterable:s"),
21+
Compile / doc / scalacOptions ++= Seq("-implicits", "-groups", "-nowarn"),
2222
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v", "-s", "-a"),
2323
Test / parallelExecution := false, // why?
2424
libraryDependencies ++= Seq(

src/main/scala/scala/collection/MultiDict.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ trait MultiDict[K, V]
2424
def canEqual(that: Any): Boolean = true
2525

2626
override def equals(o: Any): Boolean = o match {
27-
case that: MultiDict[K, V] =>
27+
case that: MultiDict[K @unchecked, _] =>
2828
(this eq that) ||
2929
(that canEqual this) &&
3030
(this.size == that.size) && {

src/main/scala/scala/collection/MultiSet.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ trait MultiSet[A]
2222
def canEqual(that: Any): Boolean = true
2323

2424
override def equals(o: Any): Boolean = o match {
25-
case that: MultiSet[A] =>
25+
case that: MultiSet[A @unchecked] =>
2626
(this eq that) ||
2727
(that canEqual this) &&
2828
(this.size == that.size) && {
@@ -126,4 +126,4 @@ trait MultiSetOps[A, +CC[X] <: MultiSet[X], +C <: MultiSet[A]]
126126

127127
}
128128

129-
object MultiSet extends IterableFactory.Delegate(immutable.MultiSet)
129+
object MultiSet extends IterableFactory.Delegate(immutable.MultiSet)

0 commit comments

Comments
 (0)