Guest User

Untitled

a guest
Aug 24th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.47 KB | None | 0 0
  1. tanu@LAPTOP ~/tmp> cat test.vala
  2. void main() {
  3.         var h = new GLib.HashTable<string, string>(GLib.str_hash, GLib.str_equal);
  4.  
  5.         if ("foo" in h)
  6.                 GLib.message("found");
  7.         else
  8.                 GLib.message("no!");
  9. }
  10.  
  11.  
  12.  
  13. tanu@LAPTOP ~/tmp> valac test.vala
  14. test.vala:4.13-4.22: error: `GLib.HashTable<string,string>' does not have a `contains' method
  15.         if ("foo" in h)
  16.             ^^^^^^^^^^
  17. Compilation failed: 1 error(s), 0 warning(s)
Add Comment
Please, Sign In to add comment