[#1283] | project: compiler | priority: low | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Sean | Martin | moved to trac | 2007-08-21 12:20:13.0 | |
subject | resident compiler same name bug | |||
code |
// three files in two packages // note that the packages have to have the same last segment name, // while the two traits must have the same base name // package lampion.eclipse // file lampion/eclipse/UIPlugin.scala package lampion.eclipse trait UIPlugin { type Project <: ProjectImpl trait ProjectImpl } // package scala.tools.eclipse // file scala/tools/eclipse/UIPlugin.scala package scala.tools.eclipse trait UIPlugin extends lampion.eclipse.UIPlugin { type Project <: ProjectImpl trait ProjectImpl extends super.ProjectImpl } // file scala/tools/eclipse/Driver.scala package scala.tools.eclipse abstract class Driver extends UIPlugin { abstract class Project extends ProjectImpl } |
|||
what happened | sean-mcdirmid:~/workspace/test14/src mcdirmid$ ../../scala/build/quick/bin/scalac -Xresident -sourcepath . -d .\ ./bin -classpath ../bin nsc> scala/tools/eclipse/Driver.scala nsc> scala/tools/eclipse/Driver.scala scala/tools/eclipse/Driver.scala:3: error: illegal cyclic reference involving trait ProjectImpl abstract class Project extends ProjectImpl The next time it will crash |
|||
what expected | ||||
[back to overview] |
Gilles edited on 2007-08-29 09:55:53.0 |