diff options
author | Juerg Billeter <j@bitron.ch> | 2008-04-14 18:16:48 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-04-14 18:16:48 +0000 |
commit | 9a47bfea4556af21cdd42d2faca57b9ee1e3c078 (patch) | |
tree | 194c166504b474ccee79de4f7d6a62762f4f4c2e /gee | |
parent | 27afedc0a84382bfc3d4040a5c0e62bb70e72fa6 (diff) | |
download | vala-9a47bfea4556af21cdd42d2faca57b9ee1e3c078.tar.gz |
report error when using null literal as default expression of non-null
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report error when using null
literal as default expression of non-null parameter,
fixes bug 528021
* gee/readonlycollection.vala, gee/readonlylist.vala,
gee/readonlymap.vala, gee/readonlyset.vala, vala/valascope.vala,
ccode/valaccodeforstatement.vala, ccode/valaccodewhilestatement.vala,
vapigen/valavapicheck.vala, vapi/glib-2.0.vapi: fix revealed bugs
svn path=/trunk/; revision=1226
Diffstat (limited to 'gee')
-rw-r--r-- | gee/readonlycollection.vala | 2 | ||||
-rw-r--r-- | gee/readonlylist.vala | 2 | ||||
-rw-r--r-- | gee/readonlymap.vala | 2 | ||||
-rw-r--r-- | gee/readonlyset.vala | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/gee/readonlycollection.vala b/gee/readonlycollection.vala index c54226e42..e0ec5637a 100644 --- a/gee/readonlycollection.vala +++ b/gee/readonlycollection.vala @@ -36,7 +36,7 @@ public class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Collection<G> { private Collection<G> _collection; - public ReadOnlyCollection (Collection<G> collection = null) { + public ReadOnlyCollection (Collection<G>? collection = null) { this.collection = collection; } diff --git a/gee/readonlylist.vala b/gee/readonlylist.vala index 83efd6f1b..27205213e 100644 --- a/gee/readonlylist.vala +++ b/gee/readonlylist.vala @@ -36,7 +36,7 @@ public class Gee.ReadOnlyList<G> : Object, Iterable<G>, Collection<G>, List<G> { private List<G> _list; - public ReadOnlyList (List<G> list = null) { + public ReadOnlyList (List<G>? list = null) { this.list = list; } diff --git a/gee/readonlymap.vala b/gee/readonlymap.vala index cba3a2d21..b891189e9 100644 --- a/gee/readonlymap.vala +++ b/gee/readonlymap.vala @@ -36,7 +36,7 @@ public class Gee.ReadOnlyMap<K,V> : Object, Map<K,V> { private Map<K,V> _map; - public ReadOnlyMap (Map<K,V> map = null) { + public ReadOnlyMap (Map<K,V>? map = null) { this.map = map; } diff --git a/gee/readonlyset.vala b/gee/readonlyset.vala index ecf64d933..0439c8c24 100644 --- a/gee/readonlyset.vala +++ b/gee/readonlyset.vala @@ -36,7 +36,7 @@ public class Gee.ReadOnlySet<G> : Object, Iterable<G>, Collection<G>, Set<G> { private Set<G> _set; - public ReadOnlySet (Set<G> set = null) { + public ReadOnlySet (Set<G>? set = null) { this.set = set; } |