diff options
author | Juerg Billeter <j@bitron.ch> | 2008-01-23 20:30:59 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-01-23 20:30:59 +0000 |
commit | 863c04e1a59bf3fb621046059a7ff55c9c65b931 (patch) | |
tree | 1bbab8e1d1413c1f3207d814bdbd38d08de42f18 /vala/valaintegertype.vala | |
parent | fdbdc528f10a9ac0fff74f579444e7a105d546a8 (diff) | |
download | vala-863c04e1a59bf3fb621046059a7ff55c9c65b931.tar.gz |
override copy method
2008-01-23 Juerg Billeter <j@bitron.ch>
* vala/valaintegertype.vala: override copy method
svn path=/trunk/; revision=899
Diffstat (limited to 'vala/valaintegertype.vala')
-rw-r--r-- | vala/valaintegertype.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vala/valaintegertype.vala b/vala/valaintegertype.vala index 1a16ffdf3..c99076832 100644 --- a/vala/valaintegertype.vala +++ b/vala/valaintegertype.vala @@ -32,6 +32,12 @@ public class Vala.IntegerType : ValueType { 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 |