This broke assumptions in CCodeBaseModule.is_constant_ccode_expression()
}
set_cvalue (expr, new CCodeConstant ("\"%s\"".printf (s)));
} else {
- set_cvalue (expr, new CCodeIdentifier (get_ccode_name (c)));
+ set_cvalue (expr, new CCodeConstant (get_ccode_name (c)));
}
if (array_type != null) {
semantic/errordomain-empty.test \
semantic/field-accessibility.test \
semantic/field-compact-static.test \
+ semantic/field-constant.vala \
semantic/field-external.test \
semantic/field-incompatible.test \
semantic/field-interface.test \
--- /dev/null
+double foo = GLib.Math.PI;
+
+void main () {
+ assert (foo == GLib.Math.PI);
+}