diff options
Diffstat (limited to 'tests/neg/dynamicApplyNamedDynamicTest4.scala')
-rw-r--r-- | tests/neg/dynamicApplyNamedDynamicTest4.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/neg/dynamicApplyNamedDynamicTest4.scala b/tests/neg/dynamicApplyNamedDynamicTest4.scala new file mode 100644 index 000000000..983cbc599 --- /dev/null +++ b/tests/neg/dynamicApplyNamedDynamicTest4.scala @@ -0,0 +1,7 @@ +import scala.language.dynamics + +class Foo extends scala.Dynamic + +object DynamicTest { + new Foo().bazApply("abc", 4, b = 1, b = "bcd") // error +} |