File tree 1 file changed +3
-0
lines changed
library/src/scala/annotation
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package scala.annotation
5
5
* Programmers usually do not need to use any annotations. They are intended for complex initialization
6
6
* code in static objects.
7
7
*/
8
+ @ experimental
8
9
object init :
9
10
10
11
/** Widen the abstract value of the argument so that its height is below the specified height.
@@ -27,6 +28,7 @@ object init:
27
28
* the checker will issue a warning for the method call `c.a.square()` because
28
29
* it is forbidden to call methods or access fields on cold values.
29
30
*/
31
+ @ experimental
30
32
final class widen (height : Int ) extends StaticAnnotation
31
33
32
34
/** Introduce a region context.
@@ -52,4 +54,5 @@ object init:
52
54
* the method call `box1.value.foo()` will be invalid, because it reaches `A.m`, which is not yet initialized.
53
55
* The explicit context annotation solves the problem.
54
56
*/
57
+ @ experimental
55
58
def region [T ](v : T ): T = v
You can’t perform that action at this time.
0 commit comments