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
importscala.xml._defupdateNodes(ns: Seq[Node]):Seq[Node] =for(subnode <- ns) yield subnode match {
case <d>{_}</d> iftrue=> <d>abc</d>
caseElem(prefix, label, attribs, scope, children @ _*) =>Elem(prefix, label, attribs, scope, updateNodes(children) : _*)
case other => other
}
updateNodes(<b />)
The result is:
java.lang.VerifyError: (class: $$anonfun$$updateNodes$$1, method: apply
signature: (Lscala/xml/Node;)Lscala/xml/Node;) Accessing value from
uninitialized register 17
at .updateNodes(<console>:46)
at .<init>(<console>:46)
at .<clinit>(<console>)
at RequestResult$$.<init>(<console>:9)
Notably, if the if true is removed, the generated classfile is ok. Also, the same code works under 2.7.7, so it's a regression.
The text was updated successfully, but these errors were encountered:
Paste the following in the REPL (r22631):
The result is:
Notably, if the
if true
is removed, the generated classfile is ok. Also, the same code works under 2.7.7, so it's a regression.The text was updated successfully, but these errors were encountered: