Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tanu@LAPTOP ~/tmp> cat test.vala
- void main() {
- var h = new GLib.HashTable<string, string>(GLib.str_hash, GLib.str_equal);
- if ("foo" in h)
- GLib.message("found");
- else
- GLib.message("no!");
- }
- tanu@LAPTOP ~/tmp> valac test.vala
- test.vala:4.13-4.22: error: `GLib.HashTable<string,string>' does not have a `contains' method
- if ("foo" in h)
- ^^^^^^^^^^
- Compilation failed: 1 error(s), 0 warning(s)
Add Comment
Please, Sign In to add comment