| [#506] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Iulian | Martin | fixed | 2005-12-05 16:09:27.0 | |
| subject | error when accessing public field of superclass | |||
| code |
class Point {
var x: Int = -1;
}
class ColoredPoint(x: Int) extends Point {
var c: Int = -1;
}
object Test {
def foo = {
val p = new ColoredPoint(1);
p.x
}
} |
|||
| what happened | |
|||
| what expected | no error | |||
| [back to overview] | ||||
| Martin edited on 2005-12-06 11:05:43.0 |