Skip to content

Commit

Permalink
More Scala3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mnd999 committed Oct 17, 2023
1 parent 7782cf0 commit 6dbd26c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ case class LCSbasedListDiff[A](before: List[A], after: List[A]) extends ListDiff
case class Memo[I, K, O](f: I => O)(implicit ev: I => K) extends (I => O) {
import scala.collection.mutable
val cache: mutable.Map[K, O] = mutable.Map.empty[K, O]
override def apply(x: I): O = cache.getOrElseUpdate(x, f(x))
override def apply(x: I): O = cache.getOrElseUpdate(ev(x), f(x))
}

def lcs[A](a: List[(A, Int)], b: List[(A, Int)], eq: (A, A) => Boolean): List[(Int, Int)] = {
Expand Down
2 changes: 1 addition & 1 deletion tools/tck-integrity-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-scala_${scala.binary.version}</artifactId>
<artifactId>cucumber-scala_${scala2.binary.version}</artifactId>
<version>${dep.cucumber.version}</version>
<scope>test</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ValidateScenarioTest extends AnyFunSpecLike with Matchers {
}).head
}

private def fixture =
private def fixture: { val validator: ValidateScenario } =
new {
val validator: ValidateScenario = new ValidateScenario() {}
}
Expand Down

0 comments on commit 6dbd26c

Please sign in to comment.