Aladdin - Scala Bugtracking
[#774] project: compiler priority: low category: bug
submitter assigned to status date submitted
Burak Burak fixed 2006-10-11 17:45:54.0
subject matching bug causes crash in backend
code
object phonebook3 {

  import scala.xml.{Node, Elem}

  def f(c:Node) = c match {
    case x @ Seq(Elem(_,"entry", _, _, _*)) => x
    case y @ Seq(Elem(_,"phone", _, _, _*)) => y
  }
} 
what happened
Exception in thread "main" java.lang.Error: symbol variable temp14 does not exist in phonebook.phonebook3$$anonf\
un$0.apply
        at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala$tools$nsc$backend$icode$GenICode$ICodePhase$$\
genLoad(GenICode.scala:827)
...
what expected no bug
[back to overview]
Changes of this bug report
Burak  edited on  2006-10-12 11:04:33.0
was due to missing substitution when reusing pattern node