Under Vala 0.6 the following worked.

switch (tree_store.get_column_type (n)) {
    case typeof(string):
        ...
    break;
}


In Vala 0.7 it does not -- error: Integer or string expression expected.

But GLib.Type derives from ulong so this seems to violate the Liskov
substitution principle. Is this a bug or desired behavior?

-Sam Danielson
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to