Skip to content

Commit

Permalink
fix: Ambiguous given instance inside RefinedTypeOps (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iltotore committed Oct 8, 2023
1 parent 0ef299f commit 5822995
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/src/io/github/iltotore/iron/RefinedTypeOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import scala.reflect.TypeTest
* @tparam C the constraint type of the new type
* @tparam T the new type (equivalent to `A :| C` if `T` is a transparent alias)
*/
trait RefinedTypeOps[A, C, T](using val rtc: RuntimeConstraint[A, C]):
trait RefinedTypeOps[A, C, T](using private val _rtc: RuntimeConstraint[A, C]):

/**
* R
* @return
* The runtime constraint of the underlying [[IronType]]. Can be used in non-inline methods and to improve runtime
* performances.
*/
inline protected given RuntimeConstraint[A, C] = rtc
inline def rtc: RuntimeConstraint[A, C] = _rtc

/**
* Implicitly refine at compile-time the given value.
Expand Down

0 comments on commit 5822995

Please sign in to comment.