Created
May 12, 2016 09:22
-
-
Save nrinaudo/d31eb5d50b970da1a063e6c794ad3ba4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import ops1._ | |
import ops2._ | |
object ops1 { | |
implicit class TestOps(val str: String) { | |
def op1: String = str | |
} | |
} | |
object ops2 { | |
implicit class TestOps(val str: String) { | |
def op2: String = str | |
} | |
} | |
class Test { | |
"foo".op1 | |
"foo".op2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment