Skip to content


Subversion checkout URL

You can clone with
Download ZIP


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

lrytz opened this Issue · 1 comment

2 participants


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

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.