[#476] | project: nsc | priority: low | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Iulian | Martin | fixed | 2005-11-07 17:38:16.0 | |
subject | broken bridges when compiling together several files | |||
code |
// file1: trait _Map extends AnyRef with Iterable[_Map] { } // file2: trait _DefaultMapModel extends AnyRef with _Map { def elements = new Iterator[_Map] { def hasNext = true; def next: _Map = null; } } // file3: class _HashMap extends _Map with _DefaultMapModel { } |
|||
what happened | when compiled together, class _HashMap will not get a bridge method for 'elements'! When compiling separately, j\ ust _HashMap for example, 'elements' will (correctly) get a bridge (from 'elements: Object' to 'elements: Iterat\ or'). |
|||
what expected | ... | |||
[back to overview] |
Martin edited on 2005-11-07 18:41:20.0 |