| [#1277] | project: compiler | priority: high | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Sean | Burak | fixed | 2007-08-19 09:59:20.0 | |
| subject | False coverage error and exit | |||
| code |
package test
object Go {
trait Core {
var next : Position = null
}
trait Dir
val NEXT = new Dir{}
val PREV = new Dir{}
trait Position extends Core
object head extends Core
def current : Core = null
def go(n : Dir) = (current,n) match {
case (at,NEXT) if at.next == null => false
case (at:Position,dir) => true
}
def main(args : Array[String]) = {
}
}
|
|||
| what happened | The IDE just closes (must be a System.exit), the command line says: test/Go.scala:17: error: consistency problem ! List(Go.this.Position) case (at:Position,dir) => true |
|||
| what expected | ||||
| [back to overview] | ||||
| Sean edited on 2007-08-19 09:59:36.0 |
| Sean edited on 2007-08-20 08:43:19.0 |
| This one seems to still be there and is preventing me from building. Let me know if you need a different test case. |
| Burak edited on 2007-08-20 10:40:56.0 |
| it's fine. fixed in 12571. BTW "consistency problem" means translation has generated a jump to a label with the wrong number of arguments... if I wouldn't catch this error, it would blow up only when reaching GenICode. |