tests/enum.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 11:51:20 +0000 (19:51 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 11:51:20 +0000 (19:51 +0800)
tests/enum.vala.c

tests/enum.vala

index 85a83f3..7a7a9ed 100644 (file)
@@ -9,7 +9,7 @@ int main (string[] args) {
        var  ocl = (ObjectClass) type.class_ref ();
        var ps = ocl.find_property("orientation");
        var vt = ps.value_type;
        var  ocl = (ObjectClass) type.class_ref ();
        var ps = ocl.find_property("orientation");
        var vt = ps.value_type;
-       print("%s\n", vt.name());
+       print("%s : %s\n", vt.name(), vt.is_enum() ? "Y" : "N");
         
        return 0;
 }
         
        return 0;
 }