summaryrefslogtreecommitdiff
path: root/test/pending/run/t5726b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/run/t5726b.scala')
-rw-r--r--test/pending/run/t5726b.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/pending/run/t5726b.scala b/test/pending/run/t5726b.scala
new file mode 100644
index 0000000000..839dcf40b5
--- /dev/null
+++ b/test/pending/run/t5726b.scala
@@ -0,0 +1,16 @@
+import language.dynamics
+
+class DynamicTest extends Dynamic {
+ 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()
+} \ No newline at end of file