| [#226] | project: compiler | priority: medium | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Philippe | Philippe | fixed | 2003-11-17 18:49:11.0 | |
| subject | conversions from Array to Any and Any to Array raise exception | |||
| code |
object Test {
def id[a](xs: Array[a]): Array[a] = xs;
def main(args: Array[String]): Unit = {
var xs = new Array[Int](1);
class X { xs };
xs = id(xs);
id(xs);
()
}
}
|
|||
| what happened | Exception in thread "main" java.lang.ClassCastException at Test$.main(tmp/test.scala:8) at Test.main(tmp/test.scala) |
|||
| what expected | no error |
|||
| [back to overview] | ||||
| Philippe edited on 2003-11-17 18:50:26.0 |
|
Added special cases in |