Aladdin - Scala Bugtracking
[#58] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Matthias Martin fixed 2003-07-07 14:07:16.0
subject Dependent constructor types
code
class A(x: B) extends x.C {}
class B {
  class C {}
}
what happened
The compiler crashes:
Exception in thread "main" scalac.ApplicationError
        at scalac.ast.TreeGen.mkStableId(TreeGen.java:115)
        at scalac.ast.TreeGen.mkRef(TreeGen.java:99)
        at scalac.ast.TreeGen.mkParentConstr(TreeGen.java:191)
        at scalac.ast.TreeGen.mkParentConstr(TreeGen.java:201)
        at scalac.ast.TreeGen.mkParentConstrs(TreeGen.java:209)
        at scalac.ast.TreeGen.mkParentConstrs(TreeGen.java:216)
        at scalac.ast.TreeGen.ClassDef(TreeGen.java:552)
        at scalac.ast.TreeGen.ClassDef(TreeGen.java:556)
        at scalac.transformer.AddInterfaces.makeInterface(AddInterfaces.java:268)
        at scalac.transformer.AddInterfaces.transform(AddInterfaces.java:106)
        at scalac.transformer.AddInterfaces.transform(AddInterfaces.java:67)
        at scalac.ast.Transformer.apply(Transformer.java:71)
        at scalac.ast.Transformer.apply(Transformer.java:66)
        at scalac.ast.Transformer.apply(Transformer.java:62)
        at scalac.transformer.AddInterfacesPhase.apply(AddInterfacesPhase.java:35)
        at scalac.Global.compile(Global.java:268)
        at scalac.Global.compile(Global.java:244)
        at scalac.Main.main(Main.java:32)
what expected A compiler error message saying that x in x.C is not a stable id.
[back to overview]
Changes of this bug report
Martin  edited on  2003-07-08 16:51:03.0