{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/653","labels_url":"https://api.github.com/repos/manastech/crystal/issues/653/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/653/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/653/events","html_url":"https://github.com/manastech/crystal/issues/653","id":75611821,"number":653,"title":"Return type of lambda expression seems to be incorrect.","user":{"login":"rhysd","id":823277,"avatar_url":"https://avatars.githubusercontent.com/u/823277?v=3","gravatar_id":"","url":"https://api.github.com/users/rhysd","html_url":"https://github.com/rhysd","followers_url":"https://api.github.com/users/rhysd/followers","following_url":"https://api.github.com/users/rhysd/following{/other_user}","gists_url":"https://api.github.com/users/rhysd/gists{/gist_id}","starred_url":"https://api.github.com/users/rhysd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhysd/subscriptions","organizations_url":"https://api.github.com/users/rhysd/orgs","repos_url":"https://api.github.com/users/rhysd/repos","events_url":"https://api.github.com/users/rhysd/events{/privacy}","received_events_url":"https://api.github.com/users/rhysd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-12T13:53:30Z","updated_at":"2015-09-30T14:42:52Z","closed_at":"2015-09-30T14:42:52Z","body":"Return type of lambda expression seems to be incorrect.\r\n\r\n```ruby\r\np -> (args : Array(Int32)) {\r\n  return args[0]\r\n}\r\n#=> #<(Array(Int32) -> NoReturn):0x108F24750>\r\n```\r\n\r\nI expected `Array(Int32) -> Int32`.  When I omitted `return` in body of lambda expression, the result was not changed.\r\nDo I have any mistakes or is it a bug of compiler?\r\n\r\n- Environment\r\n  - Crystal 0.7.1\r\n  - OS X 10.9"},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/144433162","html_url":"https://github.com/manastech/crystal/issues/653#issuecomment-144433162","issue_url":"https://api.github.com/repos/manastech/crystal/issues/653","id":144433162,"user":{"login":"asterite","id":209371,"avatar_url":"https://avatars.githubusercontent.com/u/209371?v=3","gravatar_id":"","url":"https://api.github.com/users/asterite","html_url":"https://github.com/asterite","followers_url":"https://api.github.com/users/asterite/followers","following_url":"https://api.github.com/users/asterite/following{/other_user}","gists_url":"https://api.github.com/users/asterite/gists{/gist_id}","starred_url":"https://api.github.com/users/asterite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterite/subscriptions","organizations_url":"https://api.github.com/users/asterite/orgs","repos_url":"https://api.github.com/users/asterite/repos","events_url":"https://api.github.com/users/asterite/events{/privacy}","received_events_url":"https://api.github.com/users/asterite/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T14:42:52Z","updated_at":"2015-09-30T14:42:52Z","body":"I'll close this. It works as intended, it might just not be very intuitive (specially the NoReturn thing)."}}