Skip to content

Commit

Permalink
Update annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierBlanvillain committed May 17, 2022
1 parent d8e6355 commit 96a4c1b
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 43 deletions.
4 changes: 0 additions & 4 deletions library/src/scala/compiletime/ops/any.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package scala.compiletime
package ops

import annotation.experimental

object any:
/** Equality comparison of two singleton types.
* ```scala
Expand Down Expand Up @@ -41,7 +39,6 @@ object any:
* ```
* @syntax markdown
*/
@experimental
type IsConst[X] <: Boolean

/** String conversion of a constant singleton type.
Expand All @@ -51,5 +48,4 @@ object any:
* ```
* @syntax markdown
*/
@experimental
type ToString[+X] <: String
3 changes: 0 additions & 3 deletions library/src/scala/compiletime/ops/double.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package scala.compiletime
package ops

import scala.annotation.experimental

@experimental
object double:
/** Addition of two `Double` singleton types.
* ```scala
Expand Down
3 changes: 0 additions & 3 deletions library/src/scala/compiletime/ops/float.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package scala.compiletime
package ops

import scala.annotation.experimental

@experimental
object float:
/** Addition of two `Float` singleton types.
* ```scala
Expand Down
6 changes: 0 additions & 6 deletions library/src/scala/compiletime/ops/int.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package scala.compiletime
package ops

import annotation.experimental

object int:
/** Successor of a natural number where zero is the type 0 and successors are reduced as if the definition was:
*
Expand Down Expand Up @@ -192,7 +190,6 @@ object int:
* ```
* @syntax markdown
*/
@experimental
type ToLong[+X <: Int] <: Long

/** Float conversion of an `Int` singleton type.
Expand All @@ -201,7 +198,6 @@ object int:
* ```
* @syntax markdown
*/
@experimental
type ToFloat[+X <: Int] <: Float

/** Double conversion of an `Int` singleton type.
Expand All @@ -210,7 +206,6 @@ object int:
* ```
* @syntax markdown
*/
@experimental
type ToDouble[+X <: Int] <: Double

/** Number of zero bits preceding the highest-order ("leftmost")
Expand All @@ -225,5 +220,4 @@ object int:
* ```
* @syntax markdown
*/
@experimental
type NumberOfLeadingZeros[+X <: Int] <: Int
3 changes: 0 additions & 3 deletions library/src/scala/compiletime/ops/long.scala
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package scala.compiletime
package ops

import scala.annotation.experimental

@experimental
object long:
/** Successor of a natural number where zero is the type 0 and successors are reduced as if the definition was:
*
Expand Down
6 changes: 0 additions & 6 deletions library/src/scala/compiletime/ops/string.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package scala.compiletime
package ops

import scala.annotation.experimental

object string:
/** Concatenation of two `String` singleton types.
* ```scala
Expand All @@ -18,7 +16,6 @@ object string:
* ```
* @syntax markdown
*/
@experimental
type Length[+X <: String] <: Int

/** Substring of a `String` singleton type, with a singleton type
Expand All @@ -31,7 +28,6 @@ object string:
* ```
* @syntax markdown
*/
@experimental
type Substring[+S <: String, +IBeg <: Int, +IEnd <: Int] <: String

/** Tests if this `String` singleton type matches the given
Expand All @@ -41,7 +37,6 @@ object string:
* ```
* @syntax markdown
*/
@experimental
type Matches[+S <: String, +Regex <: String] <: Boolean

/** Returns the Char type at the specified index.
Expand All @@ -52,5 +47,4 @@ object string:
* ```
* @syntax markdown
*/
@experimental
type CharAt[+S <: String, +Idx <: Int] <: Char
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,6 @@ val experimentalDefinitionInLibrary = Set(
"scala.annotation.MainAnnotation",
"scala.annotation.MainAnnotation$",

//// New APIs: compiletime.ops
// Can be stabilized in 3.3.0 or later.
// Needs user feedback
"scala.compiletime.ops.any$.IsConst",
"scala.compiletime.ops.any$.ToString",
"scala.compiletime.ops.double", "scala.compiletime.ops.double$",
"scala.compiletime.ops.float",
"scala.compiletime.ops.float$",
"scala.compiletime.ops.int$.NumberOfLeadingZeros",
"scala.compiletime.ops.int$.ToDouble",
"scala.compiletime.ops.int$.ToFloat",
"scala.compiletime.ops.int$.ToLong",
"scala.compiletime.ops.long", "scala.compiletime.ops.long$",
"scala.compiletime.ops.string$.Length",
"scala.compiletime.ops.string$.Matches",
"scala.compiletime.ops.string$.Substring",
"scala.compiletime.ops.string$.CharAt",

//// New APIs: Mirror
// Can be stabilized in 3.2.0 or later.
"scala.deriving.Mirror$.fromTuple", // Probably for 3.2.0
Expand Down

0 comments on commit 96a4c1b

Please sign in to comment.