| [#538] | project: compiler | priority: high | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Sean | _ | fixed | 2006-02-27 17:37:24.0 | |
| subject | nasty resident compiler code generation bug | |||
| code |
package test;
object Main extends Application {
val list = 1 :: 2 :: 3 :: 4 :: Nil;
System.err.println("HELLO-1A");
for (val i <- list) i match {
case _ : Int =>
System.err.println("HELLO-2A");
}
}
|
|||
| what happened | Run the compiler on Main.scala in resident. Run the program:HELLO-1A HELLO-2A HELLO-2A HELLO-2A HELLO-2AIn Main.scala, change HELLO-1A and HELLO-2A to HELLO-1B and HELLO-2B. Re-run the compiler (in the same resident \ session) on Main.scala. Re-execute main:HELLO-1B HELLO-2A HELLO-2A HELLO-2A HELLO-2ASeems like bug doesn't always appear (it did right away on this run, but some runs I have to change/re-compile a\ few times until things get out of synch). So you might have to repeat a few times until bug appears. |
|||
| what expected | . | |||
| [back to overview] | ||||
| Sean edited on 2006-02-27 17:37:33.0 |
| Iulian edited on 2006-02-28 11:11:03.0 |