Created
October 9, 2016 13:59
-
-
Save mnn/6e6ca758841b780fb3cf44d3e10bb122 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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