Skip to content

Instantly share code, notes, and snippets.

@nrinaudo
Created May 12, 2016 09:22
Show Gist options
  • Save nrinaudo/d31eb5d50b970da1a063e6c794ad3ba4 to your computer and use it in GitHub Desktop.
Save nrinaudo/d31eb5d50b970da1a063e6c794ad3ba4 to your computer and use it in GitHub Desktop.
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