summaryrefslogtreecommitdiff
path: root/test/files/neg/t6920.check
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-12-27 22:29:54 +0300
committerEugene Burmako <xeno.by@gmail.com>2013-12-28 21:05:13 +0300
commitd92effc8a995086c1e0c4482f6163ef17b289ede (patch)
treefee3ba6e309abe1b6c488d62721b3ce991c5bc2e /test/files/neg/t6920.check
parentbbd03b26f1eeba5abf495f5e745c6623f0cc05b7 (diff)
downloadscala-d92effc8a995086c1e0c4482f6163ef17b289ede.tar.gz
scala-d92effc8a995086c1e0c4482f6163ef17b289ede.tar.bz2
scala-d92effc8a995086c1e0c4482f6163ef17b289ede.zip
SI-8006 prevents infinite applyDynamicNamed desugarings
Since mkInvoke, the applyDynamic/selectDynamic/etc desugarer, is disconnected from typedNamedApply, the applyDynamicNamed argument rewriter, the latter doesn’t know whether it needs to apply the rewriting because the application has just been desugared or it needs to hold on because it’s already performed a desugaring on this tree. This commit introduces the attachment that links these translation facilities, preventing infinite applyDynamicNamed desugarings.
Diffstat (limited to 'test/files/neg/t6920.check')
-rw-r--r--test/files/neg/t6920.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t6920.check b/test/files/neg/t6920.check
new file mode 100644
index 0000000000..ee4eafb83e
--- /dev/null
+++ b/test/files/neg/t6920.check
@@ -0,0 +1,6 @@
+t6920.scala:9: error: too many arguments for method applyDynamicNamed: (values: Seq[(String, Any)])String
+error after rewriting to CompilerError.this.test.applyDynamicNamed("crushTheCompiler")(scala.Tuple2("a", 1), scala.Tuple2("b", 2))
+possible cause: maybe a wrong Dynamic method signature?
+ test.crushTheCompiler(a = 1, b = 2)
+ ^
+one error found