Aladdin - Scala Bugtracking
[#435] project: compiler priority: low category: feature
submitter assigned to status date submitted
Michel Martin won't fix 2005-05-29 14:34:00.0
subject Malformed types do not get detected
code
class Super[T];

abstract class C {
  type T;
  val v = new Object();
  class D extends Super[T];
  class E extends Super[v.type];
}

object Main {
  def f(x: C#D, y: C#E): Unit = ();
}
what happened
The program compiled.
what expected An error. Neither type C#D nor C#E are well formed.
[back to overview]
Changes of this bug report
Martin  edited on  2006-03-30 14:49:57.0
The spec has changed and allows these types now.