Aladdin - Scala Bugtracking
[#493] project: nsc priority: low category: bug
submitter assigned to status date submitted
Iulian Martin fixed 2005-11-17 18:46:46.0
subject worng routing of super calls (2) -- inside patterns
code
class Base {
  def foo = ();
}

class A extends Base {
  def m(f: => Unit) = {
  }

  def n = {
    val x = List(1, 2, 3);

    x match {
      case Nil =>
        m { super.foo }
    }
  }
}
what happened
  final  class A$$anonfun0 extends java.lang.Object with scala.Function0 with scala.ScalaObject {
    final def apply(): scala.Unit = A.super.foo();
what expected a forwarding method in A, and the closure to call that method.
[back to overview]
Changes of this bug report
Martin  edited on  2005-11-21 13:45:37.0