@@ -286,12 +286,12 @@ object Predef extends LowPriorityImplicits {
286
286
to be available at runtime.
287
287
To achieve this, we keep the Scala 3 signature publicly available.
288
288
We rely on the fact that it is `inline` and will not be visible in the bytecode.
289
- To add the required Scala 2 ones, we define the `scala2Assert`, we use:
290
- - `@targetName` to swap the name in the generated code to `assert`
289
+ To add the required Scala 2 ones, we define the `scala2Assert`, we use:
290
+ - `@targetName` to swap the name in the generated code to `assert`
291
291
- `@publicInBinary` to make it available during runtime.
292
292
As such, we would successfully hijack the definitions of `assert` such as:
293
293
- At compile time, we would have the definitions of `assert`
294
- - At runtime, the definitions of `scala2Assert` as `assert`
294
+ - At runtime, the definitions of `scala2Assert` as `assert`
295
295
NOTE: Tasty-Reader in Scala 2 will have to learn about this swapping if we are to
296
296
allow loading the full Scala 3 library by it.
297
297
*/
@@ -426,7 +426,7 @@ object Predef extends LowPriorityImplicits {
426
426
@ inline def formatted (fmtstr : String ): String = fmtstr format self
427
427
}
428
428
429
- /** Injects String concatenation operator `+` to any classes.
429
+ /** Injects String concatenation operator `+` to any classes.
430
430
* @group implicit-classes-any
431
431
*/
432
432
@ (deprecated @ companionMethod)(" Implicit injection of + is deprecated. Convert to String to call +" , " 2.13.0" )
@@ -622,7 +622,6 @@ object Predef extends LowPriorityImplicits {
622
622
* val y :: ys = xs.runtimeChecked // `_ :: _` can be checked at runtime, so no warning
623
623
* }}}
624
624
*/
625
- @ experimental
626
625
inline def runtimeChecked : x.type @ RuntimeChecked = x : @ RuntimeChecked
627
626
628
627
}
0 commit comments