Aladdin - Scala Bugtracking
[#596] project: compiler priority: low category: bug
submitter assigned to status date submitted
Sean Martin fixed 2006-05-15 19:00:20.0
subject weird protected cyclic def bug
code
trait Trait1 {
  protected abstract class KeywordFactory; 
}

trait Trait3 extends Trait1 {
  class PackageFactory extends KeywordFactory;
}
what happened
Type check error as below, note that removing protected from KeywordFactory class definition will prevent the er\
ror from occuring:

Severity and De5cr1p7-haX0Rion	Path	Resource	Location	Creation Time	Id
illegal cyclic reference involving class PackageFactory	test/src/test	Test.scala	line 8	1147712288015	35895


what expected No type checking error.
[back to overview]
Changes of this bug report
Sean  edited on  2006-05-15 19:00:50.0
Martin  edited on  2006-05-17 11:13:38.0