Aladdin - Scala Bugtracking
[#472] project: nsc priority: low category: bug
submitter assigned to status date submitted
Iulian Martin fixed 2005-11-04 10:40:26.0
subject Extra ctor parameter for inner traits
code
abstract class Enumeration {
  trait Value extends Ordered[Value] {
     def id: Int = 10;
  }
}
what happened
The 'impl' class of the trait, Enumeration$Value$class, will have a wrong constructor signature:
   def $init$($this: Enumeration$Value, x$1: Enumeration, $outer: Enumeration): scala.Unit . The ex\
tra argument x$1 is not necessary.
what expected def $init$($this: Enumeration$Value, $outer: Enumeration): scala.Unit
[back to overview]
Changes of this bug report
Martin  edited on  2005-11-04 15:37:46.0