diff options
Diffstat (limited to 'tests/neg/dynamicApplyDynamicTest7.scala')
-rw-r--r-- | tests/neg/dynamicApplyDynamicTest7.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/neg/dynamicApplyDynamicTest7.scala b/tests/neg/dynamicApplyDynamicTest7.scala new file mode 100644 index 000000000..7985dd09e --- /dev/null +++ b/tests/neg/dynamicApplyDynamicTest7.scala @@ -0,0 +1,9 @@ +import scala.language.dynamics + +class Foo extends scala.Dynamic { + def applyDynamic(name: Int)(args: String*): String = ??? +} + +object DynamicTest { + def test: String = new Foo().bazApply() // error +} |