aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/dynamicApplyNamedDynamicTest1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/dynamicApplyNamedDynamicTest1.scala')
-rw-r--r--tests/neg/dynamicApplyNamedDynamicTest1.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/neg/dynamicApplyNamedDynamicTest1.scala b/tests/neg/dynamicApplyNamedDynamicTest1.scala
new file mode 100644
index 000000000..a51cd2c7b
--- /dev/null
+++ b/tests/neg/dynamicApplyNamedDynamicTest1.scala
@@ -0,0 +1,7 @@
+import scala.language.dynamics
+
+class Foo extends scala.Dynamic
+
+object DynamicTest {
+ new Foo().bazApply(a = "abc", b = 1) // error
+}