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/valamethodtype.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/valamethodtype.vala')
-rw-r--r-- | vala/valamethodtype.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vala/valamethodtype.vala b/vala/valamethodtype.vala index e04fb629b..be0df4965 100644 --- a/vala/valamethodtype.vala +++ b/vala/valamethodtype.vala @@ -44,11 +44,11 @@ public class Vala.MethodType : DataType { return method_symbol.get_parameters (); } - public override DataType! copy () { + public override DataType copy () { return new MethodType (method_symbol); } - public override bool compatible (DataType! target_type, bool enable_non_null = true) { + public override bool compatible (DataType target_type, bool enable_non_null = true) { var dt = target_type as DelegateType; if (dt == null) { // method types incompatible to anything but delegates @@ -58,7 +58,7 @@ public class Vala.MethodType : DataType { return dt.delegate_symbol.matches_method (method_symbol); } - public override string! to_string () { + public override string to_string () { return method_symbol.get_full_name (); } } |