| [#30] | project: compiler | priority: medium | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Vincent | Martin | fixed | 2003-06-13 13:36:47.0 | |
| subject | overriding & overloading | |||
| code |
trait A {
def f(x: int): unit;
def f(x: String): unit;
}
class B extends A {
def f(x: int): unit = ();
def f(x: String): unit = ();
}
|
|||
| what happened | The typechecker give correct types for overloaded symbols in both class (i.e. the same), but refuses to accept t\ he overriding. |
|||
| what expected | ||||
| [back to overview] | ||||