public enum Foo {
  [Description (name = "name", nick = "nick")]
  BAR
}

private static int main (string[] args) {
  GLib.assert (Foo.BAR.to_string () == "name");
  GLib.assert (((GLib.EnumClass) typeof (Foo).class_ref ()).get_value_by_name ("name").value_nick == "nick");

  return 0;
}
