From 8d87387e6a4aa41783f83e3533046b9b57d5bcd1 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Sat, 11 Aug 2012 00:07:29 +0200 Subject: SI-6201 minor fixes in key points Fixes several oversights that led to 6201. RootPackage should have been static, refactored implementation of hasSymbolWhich shouldn't have checked hasSymbol. Full discussion is here: http://groups.google.com/group/scala-internals/browse_thread/thread/9500348f273a8aa. --- test/files/pos/t6201.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/files/pos/t6201.scala (limited to 'test') diff --git a/test/files/pos/t6201.scala b/test/files/pos/t6201.scala new file mode 100644 index 0000000000..366c1f26eb --- /dev/null +++ b/test/files/pos/t6201.scala @@ -0,0 +1,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"}).must({"b"}) } +} \ No newline at end of file -- cgit v1.2.3