File tree 7 files changed +30
-0
lines changed
library/src/scala/compiletime/ops 7 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1
1
package scala .compiletime
2
2
package ops
3
3
4
+ import annotation .experimental
5
+
4
6
object any :
5
7
/** Equality comparison of two singleton types.
6
8
* ```scala
@@ -30,6 +32,7 @@ object any:
30
32
* ```
31
33
* @syntax markdown
32
34
*/
35
+ @ experimental
33
36
type IsConst [X ] <: Boolean
34
37
35
38
/** String conversion of a constant singleton type.
@@ -39,4 +42,5 @@ object any:
39
42
* ```
40
43
* @syntax markdown
41
44
*/
45
+ @ experimental
42
46
type ToString [X ] <: String
Original file line number Diff line number Diff line change 1
1
package scala .compiletime
2
2
package ops
3
3
4
+ import scala .annotation .experimental
5
+
6
+ @ experimental
4
7
object double :
5
8
/** Addition of two `Double` singleton types.
6
9
* ```scala
Original file line number Diff line number Diff line change 1
1
package scala .compiletime
2
2
package ops
3
3
4
+ import scala .annotation .experimental
5
+
6
+ @ experimental
4
7
object float :
5
8
/** Addition of two `Float` singleton types.
6
9
* ```scala
Original file line number Diff line number Diff line change 1
1
package scala .compiletime
2
2
package ops
3
3
4
+ import annotation .experimental
5
+
4
6
object int :
5
7
/** Successor of a natural number where zero is the type 0 and successors are reduced as if the definition was
6
8
*
@@ -190,6 +192,7 @@ object int:
190
192
* ```
191
193
* @syntax markdown
192
194
*/
195
+ @ experimental
193
196
type ToLong [X <: Int ] <: Long
194
197
195
198
/** Float conversion of an `Int` singleton type.
@@ -198,6 +201,7 @@ object int:
198
201
* ```
199
202
* @syntax markdown
200
203
*/
204
+ @ experimental
201
205
type ToFloat [X <: Int ] <: Float
202
206
203
207
/** Double conversion of an `Int` singleton type.
@@ -206,6 +210,7 @@ object int:
206
210
* ```
207
211
* @syntax markdown
208
212
*/
213
+ @ experimental
209
214
type ToDouble [X <: Int ] <: Double
210
215
211
216
/** Number of zero bits preceding the highest-order ("leftmost")
@@ -220,4 +225,5 @@ object int:
220
225
* ```
221
226
* @syntax markdown
222
227
*/
228
+ @ experimental
223
229
type NumberOfLeadingZeros [X <: Int ] <: Int
Original file line number Diff line number Diff line change 1
1
package scala .compiletime
2
2
package ops
3
3
4
+ import scala .annotation .experimental
5
+
6
+ @ experimental
4
7
object long :
5
8
/** Successor of a natural number where zero is the type 0 and successors are reduced as if the definition was
6
9
*
Original file line number Diff line number Diff line change 1
1
package scala .compiletime
2
2
package ops
3
3
4
+ import scala .annotation .experimental
5
+
4
6
object string :
5
7
/** Concatenation of two `String` singleton types.
6
8
* ```scala
@@ -16,6 +18,7 @@ object string:
16
18
* ```
17
19
* @syntax markdown
18
20
*/
21
+ @ experimental
19
22
type Length [X <: String ] <: Int
20
23
21
24
/** Substring of a `String` singleton type, with a singleton type
@@ -28,6 +31,7 @@ object string:
28
31
* ```
29
32
* @syntax markdown
30
33
*/
34
+ @ experimental
31
35
type Substring [S <: String , IBeg <: Int , IEnd <: Int ] <: String
32
36
33
37
/** Tests if this `String` singleton type matches the given
@@ -37,4 +41,5 @@ object string:
37
41
* ```
38
42
* @syntax markdown
39
43
*/
44
+ @ experimental
40
45
type Matches [S <: String , Regex <: String ] <: Boolean
Original file line number Diff line number Diff line change @@ -9,5 +9,11 @@ object MiMaFilters {
9
9
ProblemFilters .exclude[DirectMissingMethodProblem ](" scala.runtime.Tuples.append" ),
10
10
ProblemFilters .exclude[ReversedMissingMethodProblem ](" scala.quoted.Quotes#reflectModule#TypeReprMethods.substituteTypes" ),
11
11
ProblemFilters .exclude[DirectMissingMethodProblem ](" scala.quoted.Quotes#reflectModule#TypeReprMethods.substituteTypes" ),
12
+ ProblemFilters .exclude[MissingClassProblem ](" scala.compiletime.ops.double" ),
13
+ ProblemFilters .exclude[MissingClassProblem ](" scala.compiletime.ops.double$" ),
14
+ ProblemFilters .exclude[MissingClassProblem ](" scala.compiletime.ops.float" ),
15
+ ProblemFilters .exclude[MissingClassProblem ](" scala.compiletime.ops.float$" ),
16
+ ProblemFilters .exclude[MissingClassProblem ](" scala.compiletime.ops.long" ),
17
+ ProblemFilters .exclude[MissingClassProblem ](" scala.compiletime.ops.long$" ),
12
18
)
13
19
}
You can’t perform that action at this time.
0 commit comments