Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

implicitis in companion not found for classes defined in worksheet #104

Open
lrytz opened this Issue · 1 comment

2 participants

@lrytz

for classes defined in the worksheet file (inside the worksheet object, or also outside), the compiler does not find implicits in the companion object.

package p

object sheet {
  def fooC(implicit c: C) = 0                     //> fooC: (implicit c: p.C)Int
  fooC        // OK, C is defined in project      //> res0: Int = 0

  def fooD(implicit d: D) = 1                     //> fooD: (implicit d: p.D)Int
//  fooD      // does not work

  class E
  object E {
    implicit val e = new E
  }

  def fooE(implicit e: E) = 2                     //> fooE: (implicit e: p.sheet.E)Int
//  fooE      // does not work
}

class D
object D {
  implicit val d = new D
}
@dotta
Owner

Probably something is wrong with the classpath for compiling the worksheet source. Need to check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.