diff options
author | Juergen Bocklage-Ryannel <juergen@ryannel.org> | 2018-03-08 20:32:38 +0100 |
---|---|---|
committer | Juergen Bocklage-Ryannel <juergen@ryannel.org> | 2018-03-08 20:32:38 +0100 |
commit | 03bf1d48d8525abf619bc3a0cf85252748f994c7 (patch) | |
tree | f087d51f274840d71cf6d2939f92523923f862d6 /tests/in/com.pelagicore.test.qface | |
parent | 170b6ca90740903c0bd3f56e803452beac1863ec (diff) | |
parent | 44e4b287efc5c314c133adb81e771b4b65efe166 (diff) |
Merge branch 'feature/default_values' into develop
* feature/default_values:
Added default values to properties and struct fields.
adding default values to interface properties and struct members
Diffstat (limited to 'tests/in/com.pelagicore.test.qface')
-rw-r--r-- | tests/in/com.pelagicore.test.qface | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/in/com.pelagicore.test.qface b/tests/in/com.pelagicore.test.qface index ae8a4f0..a5be518 100644 --- a/tests/in/com.pelagicore.test.qface +++ b/tests/in/com.pelagicore.test.qface @@ -2,13 +2,12 @@ module com.pelagicore.test 1.0; import common 1.0; -@service: { singleton: true} interface ContactService { State state; - int intValue; - readonly string stringValue; - bool boolValue; - real realValue; + int intValue = "2"; + readonly string stringValue = "hello"; + bool boolValue = "true"; + real realValue = "0.1"; var varValue; Contact currentContact; common.Date today; @@ -39,7 +38,7 @@ flag Phase { * The contact information */ struct Contact { - string name; - int age; - bool isMarried; + string name = "name"; + int age = "99"; + bool isMarried = "false"; } |