Aladdin - Scala Bugtracking
[#1084] project: compiler priority: low category: bug
submitter assigned to status date submitted
Nikolay Martin fixed 2007-05-03 10:39:26.0
subject [contrib #453] Self alias not found
code
(Maybe this is related to contribution #456 which already has been fixed.)

Does not compile:

trait Foo { self => 
  def f = self
}

Compiles:

trait Foo { self => 
  self
}

Compiles:

object A {
  trait Foo { self => 
    def f = self
  }
}
what happened
error: not found: value self
  def f = self
          ^
one error found
what expected Successful compilation
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-05-03 10:42:09.0
If the definition is a class/trait it doesn't compile. If it's an object it compiles ok.
Martin  edited on  2007-05-14 20:48:20.0