Skip to content

Commit b337d5d

Browse files
committed
chore: adapt some of the files to compile
1 parent 473cce6 commit b337d5d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

library-js/src/scala/Array.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ object Array {
6868
/**
6969
* Returns a new [[scala.collection.mutable.ArrayBuilder]].
7070
*/
71-
def newBuilder[T](implicit t: ClassTag[T]): ArrayBuilder[T] = ArrayBuilder.make[T](t)
71+
def newBuilder[T](implicit t: ClassTag[T]): ArrayBuilder[T] = ArrayBuilder.make[T](using t)
7272

7373
def from[A : ClassTag](it: IterableOnce[A]): Array[A] = {
7474
val n = it.knownSize

library-js/src/scala/Console.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,5 +280,5 @@ object Console extends AnsiColor {
280280
* @throws java.lang.IllegalArgumentException if there was a problem with the format string or arguments
281281
* @group console-output
282282
*/
283-
def printf(text: String, args: Any*): Unit = { out.print(text format (args : _*)) }
283+
def printf(text: String, args: Any*): Unit = { out.print(text.format(args*)) }
284284
}

library/src/scala/collection/StringOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ final class StringOps(private val s: String) extends AnyVal {
966966
else new WrappedString(s).toArray[B]
967967

968968
private[this] def unwrapArg(arg: Any): AnyRef = arg match {
969-
case x: ScalaNumber => x.underlying
969+
case x: ScalaNumber => x.underlying()
970970
case x => x.asInstanceOf[AnyRef]
971971
}
972972

0 commit comments

Comments
 (0)