diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-08-11 00:07:29 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-08-11 00:12:25 +0200 |
commit | 8d87387e6a4aa41783f83e3533046b9b57d5bcd1 (patch) | |
tree | 69e11003aec3cc51c55e09304a971c3832352b85 /test/files/pos/t6201.scala | |
parent | a9c00f2dff1f86f5cfcba4f8d88e784d866515ec (diff) | |
download | scala-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/pos/t6201.scala')
-rw-r--r-- | test/files/pos/t6201.scala | 13 |
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 |