diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-08-11 05:04:12 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-08-11 05:04:12 -0700 |
commit | 915b26f8966f10f8e20cb555c6287cf249562d41 (patch) | |
tree | da07a138999e515ecc6a5b5f253ec50df4433eed /test | |
parent | 837a68bef7501d8a641163635adbdccdbfe4c5b8 (diff) | |
parent | 8d87387e6a4aa41783f83e3533046b9b57d5bcd1 (diff) | |
download | scala-915b26f8966f10f8e20cb555c6287cf249562d41.tar.gz scala-915b26f8966f10f8e20cb555c6287cf249562d41.tar.bz2 scala-915b26f8966f10f8e20cb555c6287cf249562d41.zip |
Merge pull request #1118 from scalamacros/ticket/6201
SI-6201 minor fixes in key points
Diffstat (limited to 'test')
-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 |