We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d9b5d1 commit 872a20eCopy full SHA for 872a20e
library/src-scala3/scala/StagedTuple.scala
@@ -30,7 +30,7 @@ object StagedTuple {
30
31
def fromArrayStaged[T <: Tuple : Type](xs: Expr[Array[Object]], size: Option[Int]): Expr[T] = {
32
if (!specialize) '(dynamicFromArray[T](~xs))
33
- else {
+ else xs.bind { xs =>
34
val tup: Expr[Any] = size match {
35
case Some(0) => '()
36
case Some(1) => '(Tuple1( (~xs)(0)))
0 commit comments