Skip to content

Commit 73ad802

Browse files
committed
Don't rely on implicit conversion when splicing
Implicit conversions are not normally applied when splicing, it happened to work in this particular case before scala/scala3#8669 because of the peculiar way in which we typed repeated arguments.
1 parent 954bdfb commit 73ad802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/dotty/xml/interpolator/internal/Expand.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ object Expand {
4545
if (elem.children.isEmpty)
4646
'{ new _root_.scala.xml.Elem($prefix, $label, $attributes1, $scope, $empty) }
4747
else
48-
'{ new _root_.scala.xml.Elem($prefix, $label, $attributes1, $scope, $empty, $child: _*) }
48+
'{ new _root_.scala.xml.Elem($prefix, $label, $attributes1, $scope, $empty, _root_.scala.xml.NodeSeq.seqToNodeSeq($child): _*) }
4949
}
5050

5151
private def expandAttributes(attributes: Seq[Attribute])(implicit ctx: XmlContext, qctx: QuoteContext): Expr[scala.xml.MetaData] = {

0 commit comments

Comments
 (0)