Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.374 kB
import scala.language.dynamics
class DynamicTest extends Dynamic {
def selectDynamic(name: String) = s"value of $name"
def updateDynamic(name: String)(value: Any) {
println(s"You have just updated property '$name' with value: $value")
}
}
object MyApp extends App {
def testing() {
val test = new DynamicTest
test.firstName = "John"
}
testing()
}
Jump to Line
Something went wrong with that request. Please try again.