{"issue":{"user":{"id":28243,"login":"fredreichbier","url":"https://api.github.com/users/fredreichbier","gravatar_id":"4bc93742d5efe4149cb0a0d4f91732c9","avatar_url":"https://secure.gravatar.com/avatar/4bc93742d5efe4149cb0a0d4f91732c9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"title":"Iterating over `HashMap keys` gives a funny error message","milestone":null,"created_at":"2011-12-21T18:41:56Z","labels":[],"state":"open","updated_at":"2011-12-21T18:41:56Z","id":2628153,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/nddrylliog/rock/issues/361","body":"This code:\r\n\r\n```ooc\r\n\r\nimport structs/HashMap\r\n\r\nhm := HashMap<String, String> new()\r\nhm put(\"foo\", \"bar\")\r\n\r\nfor(key in hm keys) { key println() }\r\n```\r\n\r\nsays:\r\n\r\n```\r\n\r\nsdk/structs/ArrayList.ooc:186:36 ERROR Undefined symbol 'this'\r\n    iterator: func -> BackIterator<T> { return ArrayListIterator<T> new(this) }\r\n                                                                               \r\n[FAIL]\r\n```\r\n\r\nSure, it shouldn't use `keys` but `getKeys()`, but this doesn't look very cool. :D","number":361,"url":"https://api.github.com/repos/nddrylliog/rock/issues/361","comments":0,"assignee":null},"action":"opened"}