diff options
author | Juerg Billeter <j@bitron.ch> | 2008-04-13 15:44:44 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-04-13 15:44:44 +0000 |
commit | 206cd6716043d886c6531ca358f5b442c5ea991e (patch) | |
tree | 0d277104d825ce27f0aefa6734071809aabbf1b5 /vala/valanulltype.vala | |
parent | 67916b6274ed6dfbc0200cca77a52f1f21848486 (diff) | |
download | vala-206cd6716043d886c6531ca358f5b442c5ea991e.tar.gz |
report warning when using obsolete syntax for non-null types
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: report warning when using obsolete syntax
for non-null types
* */*.vala, */*.vapi: port to new syntax
svn path=/trunk/; revision=1208
Diffstat (limited to 'vala/valanulltype.vala')
-rw-r--r-- | vala/valanulltype.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valanulltype.vala b/vala/valanulltype.vala index 744a95954..47655aa84 100644 --- a/vala/valanulltype.vala +++ b/vala/valanulltype.vala @@ -30,7 +30,7 @@ public class Vala.NullType : ReferenceType { this.source_reference = source_reference; } - public override bool compatible (DataType! target_type, bool enable_non_null = true) { + public override bool compatible (DataType target_type, bool enable_non_null = true) { if (!(target_type is PointerType) && (target_type is NullType || (target_type.data_type == null && target_type.type_parameter == null))) { return true; } @@ -55,7 +55,7 @@ public class Vala.NullType : ReferenceType { return false; } - public override DataType! copy () { + public override DataType copy () { return new NullType (source_reference); } } |