diff options
-rw-r--r-- | src/library/scala/Dynamic.scala | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/library/scala/Dynamic.scala b/src/library/scala/Dynamic.scala index a8b1e9cab8..25ce4ef638 100644 --- a/src/library/scala/Dynamic.scala +++ b/src/library/scala/Dynamic.scala @@ -1,22 +1,12 @@ package scala -/** A trait that supports dynamic invocations. Instances `x` of this trait +/** A marker trait that enables dynamic invocations. Instances `x` of this trait * allow calls `x.meth(args)` for arbitrary method names `meth` and argument lists * `args`. If a call is not natively supported by `x`, it is rewritten to - * `x.invokeDynamic("meth", args)`. + * `x.applyDynamic("meth", args)`. */ trait Dynamic { - /** The dynamic invocation operation - * @param name The name of the invoked method - * @param args The arguments to the method - */ - def applyDynamic(name: String)(args: Any*): Any - - /** Returns the underlying value typed as an instance of type T - * @param T The target type - */ - def typed[T]: T } |