| [#174] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Philippe | Philippe | fixed | 2003-10-02 13:23:14.0 | |
| subject | AbstractMethodError with classes nested in a class with type parameters | |||
| code | class Foo[X] {
  class Tree;
  class Node extends Tree;
  val inner:Inner = new SubInner;
  trait Inner {
    def test: Foo[X]#Tree /* -> Tree[outer$X#1] */ ;
  }
  class SubInner extends Inner {
    def test /*: Foo.this.Node -> Node[outer$X#2]*/ = new Node;
  }
}
object Test {
  def main(args: Array[String]): Unit = {
    (new Foo[Int]).inner.test;
    ()
  }
}
 | |||
| what happened | 
 | |||
| what expected | The program should run without any error. | |||
| [back to overview] | ||||
| Philippe edited on 2003-10-02 13:30:21.0 | 
| The main problem was that method SubInner had type  |