{"action":"opened","issue":{"url":"https://api.github.com/repos/vlang/v/issues/770","repository_url":"https://api.github.com/repos/vlang/v","labels_url":"https://api.github.com/repos/vlang/v/issues/770/labels{/name}","comments_url":"https://api.github.com/repos/vlang/v/issues/770/comments","events_url":"https://api.github.com/repos/vlang/v/issues/770/events","html_url":"https://github.com/vlang/v/issues/770","id":462142378,"node_id":"MDU6SXNzdWU0NjIxNDIzNzg=","number":770,"title":"unused variables are not getting checked when skipping declaration of fn main()","user":{"login":"rainy-me","id":26110087,"node_id":"MDQ6VXNlcjI2MTEwMDg3","avatar_url":"https://avatars0.githubusercontent.com/u/26110087?v=4","gravatar_id":"","url":"https://api.github.com/users/rainy-me","html_url":"https://github.com/rainy-me","followers_url":"https://api.github.com/users/rainy-me/followers","following_url":"https://api.github.com/users/rainy-me/following{/other_user}","gists_url":"https://api.github.com/users/rainy-me/gists{/gist_id}","starred_url":"https://api.github.com/users/rainy-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainy-me/subscriptions","organizations_url":"https://api.github.com/users/rainy-me/orgs","repos_url":"https://api.github.com/users/rainy-me/repos","events_url":"https://api.github.com/users/rainy-me/events{/privacy}","received_events_url":"https://api.github.com/users/rainy-me/received_events","type":"User","site_admin":false},"labels":[{"id":1225051281,"node_id":"MDU6TGFiZWwxMjI1MDUxMjgx","url":"https://api.github.com/repos/vlang/v/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-28T17:46:02Z","updated_at":"2019-06-28T17:46:02Z","closed_at":null,"author_association":"NONE","body":"**V version:** V 0.1.8\r\n**OS:**  macOS Mojave 10.14.4 (18E226)\r\n\r\n**What did you do?**\r\n\r\n// v run not_used.v\r\n```v\r\na := 1\r\n```\r\n\r\n**What did you expect to see?**\r\n\r\nA same compilation error when has the declaration of `fn main()`\r\n\r\n```v\r\nfn main(){\r\n    a := 1\r\n}\r\n```\r\n\r\n```v\r\npass=2 fn=`main`\r\npanic: test.v:2\r\n`a` declared and not used\r\n```\r\n\r\n**What did you see instead?**\r\n\r\n```\r\n============ running not_used ============\r\n```"}}
{"actor":{"display_login":"rainy-me"}}