summaryrefslogtreecommitdiff
path: root/test/files/neg/t6436b.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-10-02 21:01:10 +0200
committerJason Zaugg <jzaugg@gmail.com>2012-10-02 21:18:01 +0200
commit0720157cd7d82db6c1efea615c2e78565b4ada0e (patch)
tree6bb7c0f165e3c1977b1c5537f9da22aa27de901d /test/files/neg/t6436b.scala
parentbe49f36154efa78c3dcbeba394aa6ec2b5e764ec (diff)
downloadscala-0720157cd7d82db6c1efea615c2e78565b4ada0e.tar.gz
scala-0720157cd7d82db6c1efea615c2e78565b4ada0e.tar.bz2
scala-0720157cd7d82db6c1efea615c2e78565b4ada0e.zip
SI-6436 Handle ambiguous string processors
Before, we got in an inifinite loop by chasing the error typed result of adaptToMemberWithArgs. One point of befuddlement remains: why did t6436 and t6436b behave differently before this change?
Diffstat (limited to 'test/files/neg/t6436b.scala')
-rw-r--r--test/files/neg/t6436b.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/t6436b.scala b/test/files/neg/t6436b.scala
new file mode 100644
index 0000000000..8023329e90
--- /dev/null
+++ b/test/files/neg/t6436b.scala
@@ -0,0 +1,9 @@
+object quasiquotes {
+ implicit def foo1(ctx: StringContext) = new { def q = ??? }
+ implicit def foo2(ctx: StringContext) = new { def q = ??? }
+}
+
+object Test extends App {
+ import quasiquotes._
+ println(StringContext("a").q())
+}