aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/dynamicApplyNamedDynamicTest5.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/dynamicApplyNamedDynamicTest5.scala')
-rw-r--r--tests/neg/dynamicApplyNamedDynamicTest5.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/neg/dynamicApplyNamedDynamicTest5.scala b/tests/neg/dynamicApplyNamedDynamicTest5.scala
new file mode 100644
index 000000000..3a48d38d8
--- /dev/null
+++ b/tests/neg/dynamicApplyNamedDynamicTest5.scala
@@ -0,0 +1,9 @@
+import scala.language.dynamics
+
+class Foo extends scala.Dynamic {
+ def applyDynamicNamed(name: String)(args: String*): String = ???
+}
+
+object DynamicTest {
+ new Foo().bazApply("abc", 4, b = 1, b = "bcd") // error // error // error // error
+}