Skip to content

Commit 87b836a

Browse files
committed
Update import wildcard from _ to * in library
1 parent 918c9d2 commit 87b836a

19 files changed

+139
-139
lines changed

library/src/scala/Tuple.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package scala
22

33
import annotation.{experimental, showAsInfix}
4-
import compiletime._
5-
import compiletime.ops.int._
4+
import compiletime.*
5+
import compiletime.ops.int.*
66

77
/** Tuple of arbitrary arity */
88
sealed trait Tuple extends Product {
9-
import Tuple._
9+
import Tuple.*
1010

1111
/** Create a copy of this tuple as an Array */
1212
inline def toArray: Array[Object] =
@@ -292,7 +292,7 @@ case object EmptyTuple extends Tuple {
292292

293293
/** Tuple of arbitrary non-zero arity */
294294
sealed trait NonEmptyTuple extends Tuple {
295-
import Tuple._
295+
import Tuple.*
296296

297297
/** Get the i-th element of this tuple.
298298
* Equivalent to productElement but with a precise return type.

library/src/scala/annotation/MacroAnnotation.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
package scala
33
package annotation
44

5-
import scala.quoted._
5+
import scala.quoted.*
66

77
/** Base trait for macro annotation implementation.
88
* Macro annotations can transform definitions and add new definitions.
@@ -46,7 +46,7 @@ definition that is owned by the package or package object.
4646
*
4747
* class memoize extends MacroAnnotation:
4848
* def transform(using Quotes)(tree: quotes.reflect.Definition): List[quotes.reflect.Definition] =
49-
* import quotes.reflect._
49+
* import quotes.reflect.*
5050
* tree match
5151
* case DefDef(name, TermParamClause(param :: Nil) :: Nil, tpt, Some(rhsTree)) =>
5252
* (param.tpt.tpe.asType, tpt.tpe.asType) match

library/src/scala/annotation/constructorOnly.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
package scala.annotation
1010

11-
import scala.annotation.meta._
11+
import scala.annotation.meta.*
1212

1313
/** An annotation that goes on parameters of classes or traits. It asserts
1414
* that the parameter is used only for initialization and is not kept in

library/src/scala/annotation/newMain.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ import scala.annotation.meta.param
6565
*/
6666
@experimental
6767
final class newMain extends MainAnnotation[FromString, Any]:
68-
import newMain._
69-
import MainAnnotation._
68+
import newMain.*
69+
import MainAnnotation.*
7070

7171
private val longArgRegex = "--[a-zA-Z][a-zA-Z0-9]+".r
7272
private val shortArgRegex = "-[a-zA-Z]".r

library/src/scala/annotation/static.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package scala.annotation
22

3-
import scala.annotation.meta._
3+
import scala.annotation.meta.*
44

55
/** https://github.com/scala/scala.github.com/pull/491 */
66

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ object any:
55
/** Equality comparison of two singleton types.
66
* ```scala
77
* //{
8-
* import compiletime.ops.any._
8+
* import compiletime.ops.any.*
99
* //}
1010
* val eq1: 1 == 1 = true
1111
* val eq2: 1 == "1" = false
@@ -18,7 +18,7 @@ object any:
1818
/** Inequality comparison of two singleton types.
1919
* ```scala
2020
* //{
21-
* import compiletime.ops.any._
21+
* import compiletime.ops.any.*
2222
* //}
2323
* val eq1: 1 != 1 = false
2424
* val eq2: 1 != "1" = true
@@ -31,7 +31,7 @@ object any:
3131
/** Tests if a type is a constant.
3232
* ```scala
3333
* //{
34-
* import compiletime.ops.any._
34+
* import compiletime.ops.any.*
3535
* //}
3636
* val c1: IsConst[1] = true
3737
* val c2: IsConst["hi"] = true
@@ -42,7 +42,7 @@ object any:
4242
* will be evaluated only at its concrete type application. E.g.:
4343
* ```scala
4444
* //{
45-
* import compiletime.ops.any._
45+
* import compiletime.ops.any.*
4646
* //}
4747
* //def `isConst`` returns the type `IsConst[X]`, since `X` is not yet known.
4848
* def isConst[X] : IsConst[X] = ???
@@ -56,7 +56,7 @@ object any:
5656
/** String conversion of a constant singleton type.
5757
* ```scala
5858
* //{
59-
* import compiletime.ops.any._
59+
* import compiletime.ops.any.*
6060
* //}
6161
* val s1: ToString[1] = "1"
6262
* val sTrue: ToString[true] = "true"

library/src/scala/compiletime/ops/boolean.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object boolean:
66
/** Negation of a `Boolean` singleton type.
77
* ```scala
88
* //{
9-
* import compiletime.ops.boolean._
9+
* import compiletime.ops.boolean.*
1010
* //}
1111
* val notFalse: ![false] = true
1212
* val notTrue: ![true] = false
@@ -18,7 +18,7 @@ object boolean:
1818
/** Exclusive disjunction of two `Boolean` singleton types.
1919
* ```scala
2020
* //{
21-
* import compiletime.ops.boolean._
21+
* import compiletime.ops.boolean.*
2222
* //}
2323
* val a: true ^ true = false
2424
* val b: false ^ true = true
@@ -30,7 +30,7 @@ object boolean:
3030
/** Conjunction of two `Boolean` singleton types.
3131
* ```scala
3232
* //{
33-
* import compiletime.ops.boolean._
33+
* import compiletime.ops.boolean.*
3434
* //}
3535
* val a: true && true = true
3636
* val b: false && true = false
@@ -42,7 +42,7 @@ object boolean:
4242
/** Disjunction of two `Boolean` singleton types.
4343
* ```scala
4444
* //{
45-
* import compiletime.ops.boolean._
45+
* import compiletime.ops.boolean.*
4646
* //}
4747
* val a: true || false = true
4848
* val b: false || false = false

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ object double:
55
/** Addition of two `Double` singleton types.
66
* ```scala
77
* //{
8-
* import compiletime.ops.double._
8+
* import compiletime.ops.double.*
99
* //}
1010
* val sum: 2.0 + 2.0 = 4.0
1111
* ```
@@ -16,7 +16,7 @@ object double:
1616
/** Subtraction of two `Double` singleton types.
1717
* ```scala
1818
* //{
19-
* import compiletime.ops.double._
19+
* import compiletime.ops.double.*
2020
* //}
2121
* val sub: 4.0 - 2.0 = 2.0
2222
* ```
@@ -27,7 +27,7 @@ object double:
2727
/** Multiplication of two `Double` singleton types.
2828
* ```scala
2929
* //{
30-
* import compiletime.ops.double._
30+
* import compiletime.ops.double.*
3131
* //}
3232
* val mul: 4.0 * 2.0 = 8.0
3333
* ```
@@ -38,7 +38,7 @@ object double:
3838
/** Integer division of two `Double` singleton types.
3939
* ```scala
4040
* //{
41-
* import compiletime.ops.double._
41+
* import compiletime.ops.double.*
4242
* //}
4343
* val div: 5.0 / 2.0 = 2.5
4444
* ```
@@ -49,7 +49,7 @@ object double:
4949
/** Remainder of the division of `X` by `Y`.
5050
* ```scala
5151
* //{
52-
* import compiletime.ops.double._
52+
* import compiletime.ops.double.*
5353
* //}
5454
* val mod: 5.0 % 2.0 = 1.0
5555
* ```
@@ -60,7 +60,7 @@ object double:
6060
/** Less-than comparison of two `Double` singleton types.
6161
* ```scala
6262
* //{
63-
* import compiletime.ops.double._
63+
* import compiletime.ops.double.*
6464
* //}
6565
* val lt1: 4.0 < 2.0 = false
6666
* val lt2: 2.0 < 4.0 = true
@@ -72,7 +72,7 @@ object double:
7272
/** Greater-than comparison of two `Double` singleton types.
7373
* ```scala
7474
* //{
75-
* import compiletime.ops.double._
75+
* import compiletime.ops.double.*
7676
* //}
7777
* val gt1: 4.0 > 2.0 = true
7878
* val gt2: 2.0 > 2.0 = false
@@ -84,7 +84,7 @@ object double:
8484
/** Greater-or-equal comparison of two `Double` singleton types.
8585
* ```scala
8686
* //{
87-
* import compiletime.ops.double._
87+
* import compiletime.ops.double.*
8888
* //}
8989
* val ge1: 4.0 >= 2.0 = true
9090
* val ge2: 2.0 >= 3.0 = false
@@ -96,7 +96,7 @@ object double:
9696
/** Less-or-equal comparison of two `Double` singleton types.
9797
* ```scala
9898
* //{
99-
* import compiletime.ops.double._
99+
* import compiletime.ops.double.*
100100
* //}
101101
* val lt1: 4.0 <= 2.0 = false
102102
* val lt2: 2.0 <= 2.0 = true
@@ -108,7 +108,7 @@ object double:
108108
/** Absolute value of an `Double` singleton type.
109109
* ```scala
110110
* //{
111-
* import compiletime.ops.double._
111+
* import compiletime.ops.double.*
112112
* //}
113113
* val abs: Abs[-1.0] = 1.0
114114
* ```
@@ -119,7 +119,7 @@ object double:
119119
/** Negation of an `Double` singleton type.
120120
* ```scala
121121
* //{
122-
* import compiletime.ops.double._
122+
* import compiletime.ops.double.*
123123
* //}
124124
* val neg1: Negate[-1.0] = 1.0
125125
* val neg2: Negate[1.0] = -1.0
@@ -131,7 +131,7 @@ object double:
131131
/** Minimum of two `Double` singleton types.
132132
* ```scala
133133
* //{
134-
* import compiletime.ops.double._
134+
* import compiletime.ops.double.*
135135
* //}
136136
* val min: Min[-1.0, 1.0] = -1.0
137137
* ```
@@ -142,7 +142,7 @@ object double:
142142
/** Maximum of two `Double` singleton types.
143143
* ```scala
144144
* //{
145-
* import compiletime.ops.double._
145+
* import compiletime.ops.double.*
146146
* //}
147147
* val max: Max[-1.0, 1.0] = 1.0
148148
* ```
@@ -153,7 +153,7 @@ object double:
153153
/** Int conversion of a `Double` singleton type.
154154
* ```scala
155155
* //{
156-
* import compiletime.ops.double._
156+
* import compiletime.ops.double.*
157157
* //}
158158
* val x: ToInt[1.0] = 1
159159
* ```
@@ -164,7 +164,7 @@ object double:
164164
/** Long conversion of a `Double` singleton type.
165165
* ```scala
166166
* //{
167-
* import compiletime.ops.double._
167+
* import compiletime.ops.double.*
168168
* //}
169169
* val x: ToLong[1.0] = 1L
170170
* ```
@@ -175,7 +175,7 @@ object double:
175175
/** Float conversion of a `Double` singleton type.
176176
* ```scala
177177
* //{
178-
* import compiletime.ops.double._
178+
* import compiletime.ops.double.*
179179
* //}
180180
* val x: ToFloat[1.0] = 1.0f
181181
* ```

0 commit comments

Comments
 (0)