Skip to content

Commit abb27a7

Browse files
committed
Less specific type for compiler generated Seq[Node]
1 parent 64425ac commit abb27a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jvm/src/test/scala/scala/xml/XMLTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ class XMLTestJVM {
918918

919919
@UnitTest
920920
def nodeSeqNs(): Unit = {
921-
val x: NodeBuffer = {
921+
val x: Seq[Node] = {
922922
<x:foo xmlns:x="abc"/><y:bar xmlns:y="def"/>
923923
}
924924
val pp: PrettyPrinter = new PrettyPrinter(80, 2)

shared/src/test/scala/scala/xml/NodeSeqTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class NodeSeqTest {
4343
case _: NodeSeq => fail("Should be Seq[Node] was NodeSeq") // Unreachable code?
4444
}
4545
val res: Seq[NodeSeq] = a +: b
46-
val exp: NodeBuffer = {
46+
val exp: Seq[Node] = {
4747
<a>Hello</a><b>Hi</b>
4848
}
4949
assertEquals(exp.toSeq, res)

shared/src/test/scala/scala/xml/XMLTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ Ours is the portal of hope, come as you are."
498498

499499
@UnitTest
500500
def nodeSeqNs(): Unit = {
501-
val x: NodeBuffer = {
501+
val x: Seq[Node] = {
502502
<x:foo xmlns:x="abc"/><y:bar xmlns:y="def"/>
503503
}
504504
val pp: PrettyPrinter = new PrettyPrinter(80, 2)

0 commit comments

Comments
 (0)