Skip to content

Commit

Permalink
Update definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
noti0na1 committed Nov 22, 2024
1 parent ba08501 commit df06d60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/src/scala/caps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ import annotation.{experimental, compileTimeOnly, retainsCap}
/** A type constraint expressing that the capture set `C` needs to contain
* the capability `R`
*/
sealed trait Contains[C <: CapSet @retainsCap, R <: Singleton]
sealed trait Contains[C >: CapSet <: CapSet @retainsCap, R <: Singleton]

/** The only implementation of `Contains`. The constraint that `{R} <: C` is
* added separately by the capture checker.
*/
given containsImpl[C <: CapSet @retainsCap, R <: Singleton]: Contains[C, R]()
given containsImpl[C >: CapSet <: CapSet @retainsCap, R <: Singleton]: Contains[C, R]()

/** A wrapper indicating a type variable in a capture argument list of a
* @retains annotation. E.g. `^{x, Y^}` is represented as `@retains(x, capsOf[Y])`.
Expand Down

0 comments on commit df06d60

Please sign in to comment.