diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-11-11 20:04:06 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-11-11 20:21:27 +0100 |
commit | a9677aa57de0fe0fd5eb23938f562e4ba9b0556b (patch) | |
tree | ff0e7bca89d907c3b2f6eb566bcc464e418e6a84 /tests/annotations | |
parent | cccf2ad9f2c6d3bb96af755bbb325bc27f232c10 (diff) | |
download | vala-a9677aa57de0fe0fd5eb23938f562e4ba9b0556b.tar.gz |
Move "blurb", "nick" and "notify" into Property
Diffstat (limited to 'tests/annotations')
-rw-r--r-- | tests/annotations/description.vala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/annotations/description.vala b/tests/annotations/description.vala new file mode 100644 index 000000000..3556bbb6a --- /dev/null +++ b/tests/annotations/description.vala @@ -0,0 +1,14 @@ +class Foo : Object { + [Description (nick = "foo's nick", blurb = "foo's blurb")] + public int foo { get; set; } +} + +void main () { + var foo = new Foo (); + (unowned ParamSpec)[] properties = foo.get_class ().list_properties (); + foreach (unowned ParamSpec p in properties) { + assert (p.get_name () == "foo"); + assert (p.get_nick () == "foo's nick"); + assert (p.get_blurb () == "foo's blurb"); + } +} |