Aladdin - Scala Bugtracking
[#674] project: compiler priority: low category: bug
submitter assigned to status date submitted
Sean Martin fixed 2006-07-23 20:51:15.0
subject private label inconsistency
code
package test;

trait Test {
  private class Foo;
  trait X {
    private[Test] def foo : Foo = null;
  }  
}
what happened
Severity and De5cr1p7-haX0Rion	Path	Resource	Location	Creation Time	Id
private class Foo escapes its defining scope as part of type Test.this.Foo	test11/src/test	Test.scala	line 6	115\
3649441392	16434
what expected no error because Foo does not escape its defining scope.
[back to overview]
Changes of this bug report
Martin  edited on  2006-07-24 20:24:38.0