Aladdin - Scala Bugtracking
[#293] project: compiler priority: low category: bug
submitter assigned to status date submitted
Philippe Martin fixed 2004-02-03 13:25:15.0
subject Definition of a package and an object with the same name crashes the compiler
code
package x {
  class C;
}
object x;
what happened
Exception in thread "main" java.lang.NullPointerException
	at scalac.typechecker.RefCheck.transform(RefCheck.java:966)
	at scalac.ast.Transformer.transform(Transformer.java:273)
	at scalac.ast.Transformer.transform(Transformer.java:87)
	at scalac.typechecker.RefCheck.transform(RefCheck.java:939)
	at scalac.typechecker.RefCheck.transformStat(RefCheck.java:927)
	at scalac.typechecker.RefCheck.transformStats(RefCheck.java:884)
	at scalac.typechecker.RefCheck.transform(RefCheck.java:965)
	at scalac.ast.Transformer.transform(Transformer.java:273)
	at scalac.typechecker.RefCheck.transform(RefCheck.java:981)
	at scalac.typechecker.RefCheck.transformStat(RefCheck.java:927)
	at scalac.typechecker.RefCheck.transformStats(RefCheck.java:884)
	at scalac.typechecker.RefCheck.apply(RefCheck.java:54)
	at scalac.typechecker.RefCheckPhase.apply(RefCheckPhase.java:26)
	at scalac.Global.compile(Global.java:313)
	at scalac.Global.compile(Global.java:285)
	at scala.tools.scalac.Main$.main(sources/scala/tools/scalac/Main.scala:33)
	at scala.tools.scalac.Main.main(sources/scala/tools/scalac/Main.scala)
what expected An error message.
[back to overview]
Changes of this bug report
Martin  edited on  2004-04-18 19:47:17.0