Aladdin - Scala Bugtracking
[#661] project: compiler priority: low category: bug
submitter assigned to status date submitted
Sean Martin fixed 2006-07-15 16:51:51.0
subject misidentified mismatch
code
package test;

object test {
  abstract class A {
    abstract class C {
      type M;
      def foo(n : M) : Unit = {}
    }
  }
  trait B extends A {
    type N;
    trait C extends super.C {
      type M = N;
      override def foo(n : M) : Unit = super.foo(n);
    }
  }
}
what happened
type mismatch; found   : B.this.N required: C.this.M	test2/src/test	test.scala	line 14	1152952917547	10666
what expected no mismatch
[back to overview]
Changes of this bug report
Sean  edited on  2006-07-21 07:38:48.0
Martin  edited on  2006-08-22 17:53:52.0