Aladdin - Scala Bugtracking
[#460] project: nsc priority: medium category: bug
submitter assigned to status date submitted
Iulian _ fixed 2005-10-15 18:41:42.0
subject [nsc] duplicate methods introduced by mixin and erasure
code
trait _Seq {
  def drop(n: Int): _Seq;
}

trait _List extends AnyRef with _Seq {
  def drop(n: Int): _Seq = null;
}

case object _Nil extends _List {
  override def drop(n: Int): _List = null;
}
what happened
Object _Nil will have 3 drop methods:
- one of type Int => _List which is defined in _Nil
- one bridge method Int => _Seq which calls the above one
- one Int => _Seq which calls the Seq$class.drop method which should not be there as it has the same name and ty\
pe with the bridge method.
what expected see above
[back to overview]
Changes of this bug report
Iulian  edited on  2005-10-17 17:04:29.0
Iulian  edited on  2005-10-18 13:34:12.0