diff options
author | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-05-30 09:20:21 +0200 |
---|---|---|
committer | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-07-07 11:10:44 +0200 |
commit | 75da0358fd7866f3dccdfcf4fbeae9af8ccc69f3 (patch) | |
tree | 142087645d00858f20eaead2f805afb333d2bddc /tests/neg/dynamicApplyNamedDynamicTest5.scala | |
parent | 07fd8a357ed660ef15163efb2788928fec290fdd (diff) | |
download | dotty-75da0358fd7866f3dccdfcf4fbeae9af8ccc69f3.tar.gz dotty-75da0358fd7866f3dccdfcf4fbeae9af8ccc69f3.tar.bz2 dotty-75da0358fd7866f3dccdfcf4fbeae9af8ccc69f3.zip |
Fix #657: Add scala.Dynamic support.
Diffstat (limited to 'tests/neg/dynamicApplyNamedDynamicTest5.scala')
-rw-r--r-- | tests/neg/dynamicApplyNamedDynamicTest5.scala | 9 |
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 +} |