Commit 905dc45b authored by Jürg Billeter's avatar Jürg Billeter

Accept numeric base types in struct declaration

parent 087fa2a3
......@@ -695,7 +695,7 @@ public class Vala.Struct : TypeSymbol {
if (base_type != null) {
base_type.check (analyzer);
if (!(base_type is StructValueType)) {
if (!(base_type is ValueType)) {
error = true;
Report.error (source_reference, "The base type `%s` of struct `%s` is not a struct".printf (base_type.to_string (), get_full_name ()));
return false;
......
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