I donβt understand why, in the following code, import ( import b._ ), which pulls in implicit def , must appear both at position 1 and at position 2 for it to work.
package a { abstract class Base {} } package b { import a._ class Derived(i: Int) extends Base {} object b { implicit def i2d(i: Int): Derived = new Derived(i) } } import a._
source share