| [#605] | project: compiler | priority: low | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Nikolay | Martin | fixed | 2006-05-18 17:47:50.0 | |
| subject | [contrib #133] Protected methods are sometimes not mixed in | |||
| code |
These two files must be compiled independently:
// File 1
trait A { protected def test = 1 }
trait B extends A { protected override def test = 2 }
// File 2
object Test
{
trait C extends B
class D extends C { test }
def main(argv : Array[String]) : Unit = {
val x = new D
()
}
} |
|||
| what happened | At runtime:
|
|||
| what expected | No error. | |||
| [back to overview] | ||||
| Nikolay edited on 2006-05-18 18:20:52.0 |
| Martin edited on 2006-05-19 18:01:04.0 |