Skip to content

Commit 263b4d9

Browse files
Update annotations
1 parent 96d5315 commit 263b4d9

File tree

6 files changed

+57
-19
lines changed

6 files changed

+57
-19
lines changed

library/src/scala/compiletime/ops/any.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package scala.compiletime
22
package ops
33

4-
import annotation.experimental
4+
import annotation.since
55

66
object any:
77
/** Equality comparison of two singleton types.
@@ -41,7 +41,7 @@ object any:
4141
* ```
4242
* @syntax markdown
4343
*/
44-
@experimental
44+
@since("3.2")
4545
type IsConst[X] <: Boolean
4646

4747
/** String conversion of a constant singleton type.
@@ -51,5 +51,5 @@ object any:
5151
* ```
5252
* @syntax markdown
5353
*/
54-
@experimental
54+
@since("3.2")
5555
type ToString[+X] <: String

library/src/scala/compiletime/ops/double.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package scala.compiletime
22
package ops
33

4-
import scala.annotation.experimental
4+
import annotation.since
55

6-
@experimental
6+
@since("3.2")
77
object double:
88
/** Addition of two `Double` singleton types.
99
* ```scala

library/src/scala/compiletime/ops/float.scala

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package scala.compiletime
22
package ops
33

4-
import scala.annotation.experimental
4+
import annotation.since
55

6-
@experimental
76
object float:
87
/** Addition of two `Float` singleton types.
98
* ```scala
109
* val sum: 2.0f + 2.0f = 4.0f
1110
* ```
1211
* @syntax markdown
1312
*/
13+
@since("3.2")
1414
type +[+X <: Float, +Y <: Float] <: Float
1515

1616
/** Subtraction of two `Float` singleton types.
@@ -19,6 +19,7 @@ object float:
1919
* ```
2020
* @syntax markdown
2121
*/
22+
@since("3.2")
2223
type -[+X <: Float, +Y <: Float] <: Float
2324

2425
/** Multiplication of two `Float` singleton types.
@@ -27,6 +28,7 @@ object float:
2728
* ```
2829
* @syntax markdown
2930
*/
31+
@since("3.2")
3032
type *[+X <: Float, +Y <: Float] <: Float
3133

3234
/** Integer division of two `Float` singleton types.
@@ -35,6 +37,7 @@ object float:
3537
* ```
3638
* @syntax markdown
3739
*/
40+
@since("3.2")
3841
type /[+X <: Float, +Y <: Float] <: Float
3942

4043
/** Remainder of the division of `X` by `Y`.
@@ -43,6 +46,7 @@ object float:
4346
* ```
4447
* @syntax markdown
4548
*/
49+
@since("3.2")
4650
type %[+X <: Float, +Y <: Float] <: Float
4751

4852
/** Less-than comparison of two `Float` singleton types.
@@ -52,6 +56,7 @@ object float:
5256
* ```
5357
* @syntax markdown
5458
*/
59+
@since("3.2")
5560
type <[+X <: Float, +Y <: Float] <: Boolean
5661

5762
/** Greater-than comparison of two `Float` singleton types.
@@ -61,6 +66,7 @@ object float:
6166
* ```
6267
* @syntax markdown
6368
*/
69+
@since("3.2")
6470
type >[+X <: Float, +Y <: Float] <: Boolean
6571

6672
/** Greater-or-equal comparison of two `Float` singleton types.
@@ -70,6 +76,7 @@ object float:
7076
* ```
7177
* @syntax markdown
7278
*/
79+
@since("3.2")
7380
type >=[+X <: Float, +Y <: Float] <: Boolean
7481

7582
/** Less-or-equal comparison of two `Float` singleton types.
@@ -79,6 +86,7 @@ object float:
7986
* ```
8087
* @syntax markdown
8188
*/
89+
@since("3.2")
8290
type <=[+X <: Float, +Y <: Float] <: Boolean
8391

8492
/** Absolute value of an `Float` singleton type.
@@ -87,6 +95,7 @@ object float:
8795
* ```
8896
* @syntax markdown
8997
*/
98+
@since("3.2")
9099
type Abs[+X <: Float] <: Float
91100

92101
/** Negation of an `Float` singleton type.
@@ -96,6 +105,7 @@ object float:
96105
* ```
97106
* @syntax markdown
98107
*/
108+
@since("3.2")
99109
type Negate[+X <: Float] <: Float
100110

101111
/** Minimum of two `Float` singleton types.
@@ -104,6 +114,7 @@ object float:
104114
* ```
105115
* @syntax markdown
106116
*/
117+
@since("3.2")
107118
type Min[+X <: Float, +Y <: Float] <: Float
108119

109120
/** Maximum of two `Float` singleton types.
@@ -112,6 +123,7 @@ object float:
112123
* ```
113124
* @syntax markdown
114125
*/
126+
@since("3.2")
115127
type Max[+X <: Float, +Y <: Float] <: Float
116128

117129
/** Int conversion of a `Float` singleton type.
@@ -120,6 +132,7 @@ object float:
120132
* ```
121133
* @syntax markdown
122134
*/
135+
@since("3.2")
123136
type ToInt[+X <: Float] <: Int
124137

125138
/** Long conversion of a `Float` singleton type.
@@ -128,6 +141,7 @@ object float:
128141
* ```
129142
* @syntax markdown
130143
*/
144+
@since("3.2")
131145
type ToLong[+X <: Float] <: Long
132146

133147
/** Double conversion of a `Float` singleton type.
@@ -136,4 +150,5 @@ object float:
136150
* ```
137151
* @syntax markdown
138152
*/
153+
@since("3.2")
139154
type ToDouble[+X <: Float] <: Double

library/src/scala/compiletime/ops/int.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package scala.compiletime
22
package ops
33

4-
import annotation.experimental
4+
import annotation.since
55

66
object int:
77
/** Successor of a natural number where zero is the type 0 and successors are reduced as if the definition was:
@@ -192,7 +192,7 @@ object int:
192192
* ```
193193
* @syntax markdown
194194
*/
195-
@experimental
195+
@since("3.2")
196196
type ToLong[+X <: Int] <: Long
197197

198198
/** Float conversion of an `Int` singleton type.
@@ -201,7 +201,7 @@ object int:
201201
* ```
202202
* @syntax markdown
203203
*/
204-
@experimental
204+
@since("3.2")
205205
type ToFloat[+X <: Int] <: Float
206206

207207
/** Double conversion of an `Int` singleton type.
@@ -210,7 +210,7 @@ object int:
210210
* ```
211211
* @syntax markdown
212212
*/
213-
@experimental
213+
@since("3.2")
214214
type ToDouble[+X <: Int] <: Double
215215

216216
/** Number of zero bits preceding the highest-order ("leftmost")
@@ -225,5 +225,5 @@ object int:
225225
* ```
226226
* @syntax markdown
227227
*/
228-
@experimental
228+
@since("3.2")
229229
type NumberOfLeadingZeros[+X <: Int] <: Int

0 commit comments

Comments
 (0)