Skip to content

Commit 6dbd26c

Browse files
committed
More Scala3 fixes
1 parent 7782cf0 commit 6dbd26c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/tck-inspection/src/main/scala/org/opencypher/tools/tck/inspection/diff/ElementaryDiff.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ case class LCSbasedListDiff[A](before: List[A], after: List[A]) extends ListDiff
167167
case class Memo[I, K, O](f: I => O)(implicit ev: I => K) extends (I => O) {
168168
import scala.collection.mutable
169169
val cache: mutable.Map[K, O] = mutable.Map.empty[K, O]
170-
override def apply(x: I): O = cache.getOrElseUpdate(x, f(x))
170+
override def apply(x: I): O = cache.getOrElseUpdate(ev(x), f(x))
171171
}
172172

173173
def lcs[A](a: List[(A, Int)], b: List[(A, Int)], eq: (A, A) => Boolean): List[(Int, Int)] = {

tools/tck-integrity-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109

110110
<dependency>
111111
<groupId>io.cucumber</groupId>
112-
<artifactId>cucumber-scala_${scala.binary.version}</artifactId>
112+
<artifactId>cucumber-scala_${scala2.binary.version}</artifactId>
113113
<version>${dep.cucumber.version}</version>
114114
<scope>test</scope>
115115
</dependency>

tools/tck-integrity-tests/src/test/scala/org/opencypher/tools/tck/ValidateScenarioTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ValidateScenarioTest extends AnyFunSpecLike with Matchers {
4545
}).head
4646
}
4747

48-
private def fixture =
48+
private def fixture: { val validator: ValidateScenario } =
4949
new {
5050
val validator: ValidateScenario = new ValidateScenario() {}
5151
}

0 commit comments

Comments
 (0)