Skip to content

Commit

Permalink
Renamed msg"" to m""
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jul 1, 2024
1 parent a59c3f2 commit ace1be1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/wisteria.SumDerivationMethods.scala
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ trait SumDerivationMethods[TypeclassType[_]]:
case _ =>
inline if fallible
then raise(VariantError[DerivationType](inputLabel))(Unset)(using summonInline[Errant[VariantError]])
else throw Panic(msg"Should be unreachable")
else throw Panic(m"Should be unreachable")

private transparent inline def fold[DerivationType, VariantsType <: Tuple, LabelsType <: Tuple]
(inline sum: DerivationType, size: Int, index: Int, fallible: Boolean)
Expand Down Expand Up @@ -175,6 +175,6 @@ trait SumDerivationMethods[TypeclassType[_]]:
case _ =>
inline if fallible
then raise(VariantError[DerivationType]("".tt))(Unset)(using summonInline[Errant[VariantError]])
else throw Panic(msg"Should be unreachable")
else throw Panic(m"Should be unreachable")

inline def split[DerivationType: SumReflection]: TypeclassType[DerivationType]
2 changes: 1 addition & 1 deletion src/core/wisteria.VariantError.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ object VariantError:
VariantError(inputLabel, sum, variants)

case class VariantError(inputLabel: Text, sum: Text, validVariants: List[Text])
extends Error(msg"""the specified variant ($inputLabel) is not one of the valid variants
extends Error(m"""the specified variant ($inputLabel) is not one of the valid variants
(${validVariants.mkString(", ").tt}) of sum type $sum""")

0 comments on commit ace1be1

Please sign in to comment.