Aladdin - Scala Bugtracking
[#77] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Philippe Burak fixed 2003-07-18 19:58:49.0
subject transmatch uses same symbol in several valdefs
code
// This is extracted from a test file => don't add a new test file.
object Test {
  case class Person(lastname:String );

  def main(args: Array[String]): Unit = {
    (Person("Smith")::Nil) match {
      case List( _ *, Person( lastname  ), _ * ) => 0
      case _ => 0
    }
    ()
  }
}
what happened
The following command crashes

surus Test.scala -uniqid -print:trans+ -- Test

The message of the exception contains the name of a symbol (with its
unique id). This symbol appears in several ValDefs. This is illegal
and that's why the exception is raised.
what expected Every definition (classdef, valdef, defdef, etc) has a different symbol.
[back to overview]
Changes of this bug report
Philippe  edited on  2003-07-18 19:59:40.0
Burak  edited on  2003-07-28 13:58:34.0