You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala> new xml.Elem(null, null, xml.Null, xml.TopScope, Nil: _*)
<console>:8: error: ambiguous reference to overloaded definition,
both constructor Elem in class Elem of type (prefix: String, label: String, attributes: scala.xml.MetaData, scope: scala.xml.NamespaceBinding, child: scala.xml.Node*)scala.xml.Elem
and constructor Elem in class Elem of type (prefix: String, label: String, attributes1: scala.xml.MetaData, scope: scala.xml.NamespaceBinding, minimizeEmpty: Boolean, child: scala.xml.Node*)scala.xml.Elem
match argument types (Null,Null,xml.Null.type,xml.TopScope.type,Nothing)
new xml.Elem(null, null, xml.Null, xml.TopScope, Nil: _*)
^
The text was updated successfully, but these errors were encountered:
xmlover.scala:10:warning: constructor Elem in classElem is deprecated: This constructor is retained for backward compatibility. Please use the primary constructor, which lets you specify your own preference for `minimizeEmpty`.
valy=new xml.Elem(null, null, xml.Null, xml.TopScope, (Nil:Seq[Node]):_*)
"But that's a Boolean param!"
I really am rushing off to pick up at pre-K, that's not just an exit line.
Worked in 2.9.
The text was updated successfully, but these errors were encountered: