summaryrefslogtreecommitdiff
path: root/test/files/neg/t8006.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8006.scala')
-rw-r--r--test/files/neg/t8006.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/t8006.scala b/test/files/neg/t8006.scala
new file mode 100644
index 0000000000..b2f71c1587
--- /dev/null
+++ b/test/files/neg/t8006.scala
@@ -0,0 +1,8 @@
+object X {
+ val d = new D
+ d.meth(value1 = 10, value2 = 100) // two arguments here, but only one is allowed
+}
+import language.dynamics
+class D extends Dynamic {
+ def applyDynamicNamed(name: String)(value: (String, Any)) = name
+} \ No newline at end of file