Skip to content

Instantly share code, notes, and snippets.

@mnn
Created October 9, 2016 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnn/6e6ca758841b780fb3cf44d3e10bb122 to your computer and use it in GitHub Desktop.
Save mnn/6e6ca758841b780fb3cf44d3e10bb122 to your computer and use it in GitHub Desktop.
// 2016.3.2
object Utils {
implicit class FooPimps(f: Foo) {
def implicitMethod(): Unit = println(s"implicit foo method")
}
}
class Foo {
import Utils._
implicitMethod() // <- wrongly reports "Cannot resolve reference implicitMethod with such signature". "sbt run" works fine
def implicitMethod(x: String): Unit = ()
}
object Main extends App {
new Foo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment