aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/dynamicApplyNamedDynamicTest6.scala
blob: 4c39842af8908c52e679811c3fa6d5c7915e6e1a (plain) (blame)
1
2
3
4
5
6
7
8
9
import scala.language.dynamics

class Foo extends scala.Dynamic {
  def applyDynamicNamed(name: Int)(args: Any*): String = ???
}

object DynamicTest {
  new Foo().bazApply("abc", 4, b = 1, b = "bcd") // error
}