Aladdin - Scala Bugtracking
[#87] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Philippe Martin fixed 2003-08-12 19:56:53.0
subject new of missing selected class crashes analyzer
code
object foo {
  new foo.C;
}
what happened
Exception in thread "main" java.lang.AssertionError: 
        at scalac.typechecker.Analyzer.typeToConstructor(Analyzer.java:1301)
        at scalac.typechecker.Analyzer.transformSelect(Analyzer.java:1432)
        at scalac.typechecker.Analyzer.transform(Analyzer.java:2249)
        at scalac.typechecker.Analyzer.transform(Analyzer.java:1707)
        at scalac.typechecker.Analyzer.transform(Analyzer.java:2112)
        at scalac.typechecker.Analyzer.transform(Analyzer.java:1707)
        at scalac.typechecker.Analyzer.transform(Analyzer.java:1996)
        at scalac.typechecker.Analyzer.transform(Analyzer.java:1707)
        at scalac.typechecker.Analyzer.transform(Analyzer.java:1722)
        at scalac.typechecker.Analyzer.transformStatSeq(Analyzer.java:1526)
        at scalac.typechecker.Analyzer.transformTemplate(Analyzer.java:1588)
        at scalac.typechecker.Analyzer.transform(Analyzer.java:1802)
        at scalac.typechecker.Analyzer.transform(Analyzer.java:1726)
        at scalac.typechecker.Analyzer.transformStatSeq(Analyzer.java:1529)
        at scalac.typechecker.Analyzer.apply(Analyzer.java:113)
        at scalac.ast.Transformer.apply(Transformer.java:66)
        at scalac.ast.Transformer.apply(Transformer.java:62)
        at scalac.typechecker.Analyzer.apply(Analyzer.java:61)
        at scalac.typechecker.AnalyzerPhase.apply(AnalyzerPhase.java:118)
        at scalac.Global.compile(Global.java:297)
        at scalac.Global.compile(Global.java:273)
        at scalai.Interpreter.interpret(Interpreter.java:73)
        at scalai.InterpreterShell.load(InterpreterShell.java:237)
        at scalai.InterpreterShell.main(InterpreterShell.java:91)
        at scalai.Main.main(Main.java:34)
what expected no crash but an error message
[back to overview]
Changes of this bug report
Martin  edited on  2003-08-13 15:16:08.0