Skip to content

Commit df06d60

Browse files
committed
Update definitions
1 parent ba08501 commit df06d60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/caps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import annotation.{experimental, compileTimeOnly, retainsCap}
2222
/** A type constraint expressing that the capture set `C` needs to contain
2323
* the capability `R`
2424
*/
25-
sealed trait Contains[C <: CapSet @retainsCap, R <: Singleton]
25+
sealed trait Contains[C >: CapSet <: CapSet @retainsCap, R <: Singleton]
2626

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

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

0 commit comments

Comments
 (0)