[vala] Accept numeric base types in struct declaration
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Accept numeric base types in struct declaration
- Date: Tue, 5 May 2009 17:34:06 -0400 (EDT)
commit 905dc45b141da4507006b4774d870b0ee3ec77de
Author: Jürg Billeter <j bitron ch>
Date: Tue May 5 23:16:33 2009 +0200
Accept numeric base types in struct declaration
---
vala/valastruct.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vala/valastruct.vala b/vala/valastruct.vala
index 484a71f..337e432 100644
--- a/vala/valastruct.vala
+++ b/vala/valastruct.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]