From c9ab6b34144d10697e1125853383a1174fdbf426 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Mon, 26 Aug 2024 09:40:36 +0900 Subject: [PATCH] prepare latest Scala 3 --- generator/src/main/scala/Methods.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/src/main/scala/Methods.scala b/generator/src/main/scala/Methods.scala index c9331c4..5c27351 100644 --- a/generator/src/main/scala/Methods.scala +++ b/generator/src/main/scala/Methods.scala @@ -267,7 +267,7 @@ s""" def flatten[E](implicit E: X <:< Array[E]): Array[E] = (self.getClass.getComponentType.getComponentType match { $cases - case c => ofRef.flatten[E with AnyRef](self.asInstanceOf[Array[Array[E with AnyRef]]])(ClassTag(c)).self + case c => ofRef.flatten[E with AnyRef](self.asInstanceOf[Array[Array[E with AnyRef]]])(using ClassTag(c)).self }).asInstanceOf[Array[E]] """ }