vala r899 - in trunk: . vala



Author: juergbi
Date: Wed Jan 23 20:30:59 2008
New Revision: 899
URL: http://svn.gnome.org/viewvc/vala?rev=899&view=rev

Log:
2008-01-23  Juerg Billeter  <j bitron ch>

	* vala/valaintegertype.vala: override copy method


Modified:
   trunk/ChangeLog
   trunk/vala/valaintegertype.vala

Modified: trunk/vala/valaintegertype.vala
==============================================================================
--- trunk/vala/valaintegertype.vala	(original)
+++ trunk/vala/valaintegertype.vala	Wed Jan 23 20:30:59 2008
@@ -32,6 +32,12 @@
 		data_type = type_symbol;
 	}
 
+	public override DataType! copy () {
+		var type = new IntegerType (type_symbol);
+		type.literal = literal;
+		return type;
+	}
+
 	public override bool compatible (DataType! target_type) {
 		if (target_type.data_type is Struct && literal.get_type_name () == "int") {
 			// int literals are implicitly convertible to integer types



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