summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-08-11 00:07:29 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-08-11 00:12:25 +0200
commit8d87387e6a4aa41783f83e3533046b9b57d5bcd1 (patch)
tree69e11003aec3cc51c55e09304a971c3832352b85 /test/files
parenta9c00f2dff1f86f5cfcba4f8d88e784d866515ec (diff)
downloadscala-8d87387e6a4aa41783f83e3533046b9b57d5bcd1.tar.gz
scala-8d87387e6a4aa41783f83e3533046b9b57d5bcd1.tar.bz2
scala-8d87387e6a4aa41783f83e3533046b9b57d5bcd1.zip
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.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t6201.scala13
1 files changed, 13 insertions, 0 deletions
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>{"a"}</a>).must(<a>{"b"}</a>) }
+} \ No newline at end of file