diff options
Diffstat (limited to 'test/files/pos/t6201.scala')
-rw-r--r-- | test/files/pos/t6201.scala | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/files/pos/t6201.scala b/test/files/pos/t6201.scala index 366c1f26eb..d4e5bce03a 100644 --- a/test/files/pos/t6201.scala +++ b/test/files/pos/t6201.scala @@ -1,13 +1,19 @@ +// probably needs xml's weirdness to reproduce +// (specifically, _root_.scala.xml.Null being in the root package) +class Elem + class Test { + def elem: Elem = ??? + class Foo1 { - def must(x: scala.xml.Elem) = () + def must(x: 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() + implicit def toFoo1(s: Elem) = new Foo1() + implicit def toFoo2(s: Elem) = new Foo2() - def is: Unit = { (<a>{"a"}</a>).must(<a>{"b"}</a>) } + def is: Unit = { (elem) } }
\ No newline at end of file |