Aladdin - Scala Bugtracking
[#105] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Matthias Martin fixed 2003-09-02 22:51:18.0
subject Array class should be sealed
code
object T extends Array[Int](1);
what happened
Exception in thread "main" java.lang.AssertionError: Class constructor expected: scala.Array.asIntArray
        at scalac.transformer.AddConstructors.getConstructor(AddConstructors.java:84)
        at scalac.transformer.AddConstructors.getConstructor(AddConstructors.java:78)
        at scalac.transformer.AddConstructors.transform(AddConstructors.java:203)
        at scalac.ast.Transformer.transform(Transformer.java:276)
        at scalac.ast.Transformer.apply(Transformer.java:67)
        at scalac.transformer.AddConstructorsPhase.apply(AddConstructorsPhase.java:42)
        at scalac.Global.compile(Global.java:293)
        at scalac.Global.compile(Global.java:266)
        at scalac.Main.main(Main.java:32)
what expected Compiler fails without crashing.
[back to overview]
Changes of this bug report
Martin  edited on  2003-09-03 12:58:51.0