Skip to content

Commit

Permalink
prepare latest Scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Aug 26, 2024
1 parent 77a1ee8 commit 0472717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/src/main/scala/Methods.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
"""
}
Expand Down

0 comments on commit 0472717

Please sign in to comment.