Aladdin - Scala Bugtracking
[#109] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Erik Martin fixed 2003-09-03 11:20:17.0
subject Lifted nested functions get wrong qualifier
code
class TC {
  private def nested(x: Int): Unit = {
    def g(x: Int): Unit = {
      g(x);
    }
    g(x);
  }
  def gg(x: Int): Unit = {
    gg(x);
}
> }
what happened
[[Trees after phase lambdalift]]
// Scala source: tmp/test.scala
class TC() extends scala.Object() {
  private def nested(x: scala.Int): scala.Unit = {
    ;
    g$0(x)
  };
  def gg(x: scala.Int): scala.Unit = TC.this.gg(x);
  def g$0(x: scala.Int): scala.Unit = g$0(x)
};
what expected That the call to g$0 should be qualified with TC.this
[back to overview]
Changes of this bug report
Martin  edited on  2003-09-03 18:46:13.0