Revert "codegen: Don't implicitly initialize local variables with an initializer"
[vala-gnome.git] / tests / annotations / description.vala
blob3556bbb6a477a6af69be2cdd005e8d281a716204
1 class Foo : Object {
2 [Description (nick = "foo's nick", blurb = "foo's blurb")]
3 public int foo { get; set; }
6 void main () {
7 var foo = new Foo ();
8 (unowned ParamSpec)[] properties = foo.get_class ().list_properties ();
9 foreach (unowned ParamSpec p in properties) {
10 assert (p.get_name () == "foo");
11 assert (p.get_nick () == "foo's nick");
12 assert (p.get_blurb () == "foo's blurb");