vala r899 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r899 - in trunk: . vala
- Date: Wed, 23 Jan 2008 20:30:59 +0000 (GMT)
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]