Skip to content

Instantly share code, notes, and snippets.

@xeno-by
Created August 10, 2012 20:27
Show Gist options
  • Save xeno-by/3317596 to your computer and use it in GitHub Desktop.
Save xeno-by/3317596 to your computer and use it in GitHub Desktop.
class Test {
class Foo1 {
def must(x: scala.xml.Elem) = ()
}
class Foo2 {
def must(x: Int) = ()
}
implicit def toFoo1(s: scala.xml.Elem) = new Foo1()
implicit def toFoo2(s: scala.xml.Elem) = new Foo2()
def is: Unit = { (<a>{"a"}</a>).must(<a>{"b"}</a>) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment