Skip to content

Commit

Permalink
fix: RefinedTypeOps#apply macro dealiasing (#285)
Browse files Browse the repository at this point in the history
Fix for [284](#284).
  • Loading branch information
FrancisToth authored Feb 4, 2025
1 parent 1609d0c commit 0502840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/io/github/iltotore/iron/macros/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def isIronTypeImpl[T: Type, C: Type](using Quotes): Expr[Boolean] =
val implicationType = TypeRepr.of[Implication]
val targetConstraintType = TypeRepr.of[C]

TypeRepr.of[T] match
TypeRepr.of[T].dealias match
case AppliedType(tpe, List(baseType, constraintType)) if tpe =:= ironType =>
Implicits.search(implicationType.appliedTo(List(constraintType, targetConstraintType))) match
case _: ImplicitSearchSuccess => Expr(true)
Expand Down

0 comments on commit 0502840

Please sign in to comment.