Commit 744e341f authored by Jürg Billeter's avatar Jürg Billeter

Fix handling of numeric types in symbol resolver

parent 905dc45b
......@@ -289,11 +289,12 @@ public class Vala.SymbolResolver : CodeVisitor {
type = new ObjectType ((Interface) sym);
} else if (sym is Struct) {
var st = (Struct) sym;
if (st.is_boolean_type ()) {
// attributes are not processed yet, access them directly
if (st.get_attribute ("BooleanType") != null) {
type = new BooleanType (st);
} else if (st.is_integer_type ()) {
} else if (st.get_attribute ("IntegerType") != null) {
type = new IntegerType (st);
} else if (st.is_floating_type ()) {
} else if (st.get_attribute ("FloatingType") != null) {
type = new FloatingType (st);
} else {
type = new StructValueType (st);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment