Skip to content

Commit e07db84

Browse files
committed
Rename caps.* to caps.cap
1 parent 698810d commit e07db84

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/disabled/neg-custom-args/captures/capt-wf.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// No longer valid
22
class C
3-
type Cap = C @retains(caps.*)
4-
type Top = Any @retains(caps.*)
3+
type Cap = C @retains(caps.cap)
4+
type Top = Any @retains(caps.cap)
55

66
type T = (x: Cap) => List[String @retains(x)] => Unit // error
77
val x: (x: Cap) => Array[String @retains(x)] = ??? // error

tests/disabled/neg-custom-args/captures/try2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import annotation.ability
55
@ability erased val canThrow: * = ???
66

77
class CanThrow[E <: Exception] extends Retains[canThrow.type]
8-
type Top = Any @retains(caps.*)
8+
type Top = Any @retains(caps.cap)
99

1010
infix type throws[R, E <: Exception] = (erased CanThrow[E]) ?=> R
1111

tests/pos/caps-universal.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import annotation.retains
33

44
val id: Int -> Int = (x: Int) => x
55
val foo: Int => Int = id
6-
val bar: (Int -> Int) @retains(caps.*) = foo
6+
val bar: (Int -> Int) @retains(caps.cap) = foo
77

88

99

0 commit comments

Comments
 (0)