Skip to content

Commit

Permalink
Update scala-compiler, scala-library, ... to 2.13.13 (#1259)
Browse files Browse the repository at this point in the history
Co-authored-by: Jules Ivanic <jules.ivanic@gmail.com>
  • Loading branch information
scala-steward and guizmaii committed Apr 13, 2024
1 parent bb5ee54 commit deb15fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions macros/shared/src/main/scala-2/zio/prelude/Macros.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ private[prelude] class Macros(val c: whitebox.Context) extends Liftables {
quotedAssertion match {
case Some(quotedAssertion) =>
expr.tree match {
case Literal(Constant(value)) =>
case Literal(Constant(value0)) =>
val (assertion, code) = getAssertion[T, A](quotedAssertion)

assertion.apply(value.asInstanceOf[A]) match {
assertion.apply(value0.asInstanceOf[A]) match {
case Left(error) =>
val message =
s"""
|$assertionErrorHeader
|${"\u001b[2m"}assertion = ${Console.RESET + Console.YELLOW}$code${Console.RESET}
|
|${error.render(value.toString)}
|${error.render(value0.toString)}
|""".stripMargin

c.abort(c.enclosingPosition, message)
Expand Down
2 changes: 1 addition & 1 deletion project/BuildHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import scalafix.sbt.ScalafixPlugin.autoImport.*

object BuildHelper {
val Scala212: String = "2.12.19"
val Scala213: String = "2.13.12"
val Scala213: String = "2.13.13"
val Scala3: String = "3.3.3"

private val stdOptions = Seq(
Expand Down

0 comments on commit deb15fc

Please sign in to comment.