Skip to content

Commit

Permalink
Started using
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 23, 2025
1 parent 3e0306f commit 27ea966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/wisteria.SumDerivationMethods.scala
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ trait SumDerivationMethods[TypeclassType[_]]:
case _: (labelType *: moreLabelsType) =>
type VariantType = variantType & DerivationType
if index >= size then Unset else
(valueOf[labelType].asMatchable: @unchecked) match
valueOf[labelType].asMatchable.runtimeChecked match
case label: String =>
val index2: Int & VariantIndex[DerivationType] = VariantIndex[DerivationType](index)

Expand Down Expand Up @@ -190,7 +190,7 @@ trait SumDerivationMethods[TypeclassType[_]]:
case _: (labelType *: moreLabelsType) =>
type VariantType = variantType & DerivationType
if index >= size then Unset else
(valueOf[labelType].asMatchable: @unchecked) match
valueOf[labelType].asMatchable.runtimeChecked match
case label: String =>
val index2: Int & VariantIndex[DerivationType] = VariantIndex[DerivationType](index)

Expand Down

0 comments on commit 27ea966

Please sign in to comment.