Aladdin - Scala Bugtracking
[#492] project: nsc priority: low category: bug
submitter assigned to status date submitted
Iulian Martin fixed 2005-11-17 18:38:04.0
subject inheritance from trait implementation class
code
object Bug399Test {
  def f(x: String): String = {
    trait C { def f: String = x; }
    class D extends C;
    (new D).f
  }

  def main(args: Array[String]): Unit = {
    Console.println(f("a"));
  }
}
what happened
  class Bug399Test$D0 extends java.lang.Object with Bug399Test$C$class0 with scala.ScalaObject {
...
what expected
  class Bug399Test$D0 extends java.lang.Object with Bug399Test$C0 with scala.ScalaObject {

[back to overview]
Changes of this bug report
Martin  edited on  2005-11-21 13:46:03.0