2008-05-02 Juerg Billeter <j@bitron.ch>
* vala/valastruct.vala: inherit integer_type and floating_type,
fixes bug 530600
svn path=/trunk/; revision=1337
2008-05-02 Jürg Billeter <j@bitron.ch>
+ * vala/valastruct.vala: inherit integer_type and floating_type,
+ fixes bug 530600
+
+2008-05-02 Jürg Billeter <j@bitron.ch>
+
* vala/valaarraytype.vala:
* vala/valadatatype.vala:
* gobject/valaccodegeneratorsignal.vala:
* @return true if this is an integer type, false otherwise
*/
public bool is_integer_type () {
+ foreach (DataType type in base_types) {
+ var st = type.data_type as Struct;
+ if (st != null && st.is_integer_type ()) {
+ return true;
+ }
+ }
return integer_type;
}
* @return true if this is a floating point type, false otherwise
*/
public bool is_floating_type () {
+ foreach (DataType type in base_types) {
+ var st = type.data_type as Struct;
+ if (st != null && st.is_floating_type ()) {
+ return true;
+ }
+ }
return floating_type;
}