[vala] Fixed codegen problem



commit 7e13e08068d2f4649b142523bf92651212580a0a
Author: Jamie <jamie jamie-laptop (none)>
Date:   Mon Apr 13 11:45:49 2009 -0400

    Fixed codegen problem
---
 vala/valagenieparser.vala |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index b90acb9..55dcaad 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -2341,11 +2341,13 @@ public class Vala.Genie.Parser : CodeVisitor {
 		var type_param_list = parse_type_parameter_list ();
 		var base_types = new ArrayList<DataType> ();
 		if (accept (TokenType.COLON)) {
-			base_types.add (parse_type ());
+			var type1 = parse_type ();
+			base_types.add (type1);
 			
 			if (accept (TokenType.IMPLEMENTS)) {
 				do {
-					base_types.add (parse_type ());
+					var type2 = parse_type ();
+					base_types.add (type2);
 				} while (accept (TokenType.COMMA));
 			}
 		}
@@ -2975,7 +2977,8 @@ public class Vala.Genie.Parser : CodeVisitor {
 		var base_types = new ArrayList<DataType> ();
 		if (accept (TokenType.COLON)) {
 			do {
-				base_types.add (parse_type ());
+				var type = parse_type ();
+				base_types.add (type);
 			} while (accept (TokenType.COMMA));
 		}
 		var iface = new Interface (sym.name, get_src_com (begin));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]