blob: 366c1f26eb349c2e310a068ae11d553ba373932f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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>) }
}
|