{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/13408","labels_url":"https://api.github.com/repos/golang/go/issues/13408/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13408/comments","events_url":"https://api.github.com/repos/golang/go/issues/13408/events","html_url":"https://github.com/golang/go/issues/13408","id":118991520,"number":13408,"title":"func need return error. In codes there's nothing returned but can be build successfully.","user":{"login":"AnotherGoogleFans","id":6881899,"avatar_url":"https://avatars.githubusercontent.com/u/6881899?v=3","gravatar_id":"","url":"https://api.github.com/users/AnotherGoogleFans","html_url":"https://github.com/AnotherGoogleFans","followers_url":"https://api.github.com/users/AnotherGoogleFans/followers","following_url":"https://api.github.com/users/AnotherGoogleFans/following{/other_user}","gists_url":"https://api.github.com/users/AnotherGoogleFans/gists{/gist_id}","starred_url":"https://api.github.com/users/AnotherGoogleFans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnotherGoogleFans/subscriptions","organizations_url":"https://api.github.com/users/AnotherGoogleFans/orgs","repos_url":"https://api.github.com/users/AnotherGoogleFans/repos","events_url":"https://api.github.com/users/AnotherGoogleFans/events{/privacy}","received_events_url":"https://api.github.com/users/AnotherGoogleFans/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-26T07:50:02Z","updated_at":"2015-11-26T08:39:55Z","closed_at":"2015-11-26T08:39:55Z","body":"The code is very simple:\r\n\r\nfunc test() error {\r\n    for{}\r\n}\r\n\r\nand this can be build successfully.\r\n\r\nShouldn't this throw an error like \"missing return at end of function\" or something like this?\r\n\r\nGo1.5.1 mac"}}