Skip to content

Commit 7c4aee9

Browse files
committed
Add experimental to lib changes
1 parent f1d02ae commit 7c4aee9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/src/scala/annotation/init.scala

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package scala.annotation
55
* Programmers usually do not need to use any annotations. They are intended for complex initialization
66
* code in static objects.
77
*/
8+
@experimental
89
object init:
910

1011
/** Widen the abstract value of the argument so that its height is below the specified height.
@@ -27,6 +28,7 @@ object init:
2728
* the checker will issue a warning for the method call `c.a.square()` because
2829
* it is forbidden to call methods or access fields on cold values.
2930
*/
31+
@experimental
3032
final class widen(height: Int) extends StaticAnnotation
3133

3234
/** Introduce a region context.
@@ -52,4 +54,5 @@ object init:
5254
* the method call `box1.value.foo()` will be invalid, because it reaches `A.m`, which is not yet initialized.
5355
* The explicit context annotation solves the problem.
5456
*/
57+
@experimental
5558
def region[T](v: T): T = v

0 commit comments

Comments
 (0)