{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/2570","labels_url":"https://api.github.com/repos/godotengine/godot/issues/2570/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/2570/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/2570/events","html_url":"https://github.com/godotengine/godot/issues/2570","id":109697540,"number":2570,"title":"Empty `if` block is not parsed correctly","user":{"login":"vnen","id":5599796,"avatar_url":"https://avatars.githubusercontent.com/u/5599796?v=3","gravatar_id":"","url":"https://api.github.com/users/vnen","html_url":"https://github.com/vnen","followers_url":"https://api.github.com/users/vnen/followers","following_url":"https://api.github.com/users/vnen/following{/other_user}","gists_url":"https://api.github.com/users/vnen/gists{/gist_id}","starred_url":"https://api.github.com/users/vnen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vnen/subscriptions","organizations_url":"https://api.github.com/users/vnen/orgs","repos_url":"https://api.github.com/users/vnen/repos","events_url":"https://api.github.com/users/vnen/events{/privacy}","received_events_url":"https://api.github.com/users/vnen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-04T19:02:14Z","updated_at":"2015-10-28T16:56:26Z","closed_at":null,"body":"Look at this nice little snippet:\r\n\r\n```gdscript\r\nfunc empty_if():\r\n\tif something:\r\n\r\nfunc test():\r\n\tprint(\"test1\")\r\n\r\n\telse:\r\n\r\nfunc test():\r\n\tprint(\"test2\")\r\n```\r\n\r\nIt allows you not only to define the same function twice without giving any error but also the function is considered undefined if you try to call it (and if you _don't_ call it, the game actually runs without problems).\r\n\r\nMy guess is that the `if` statement should expect an indented block afterwards (the same way `func` works) but it's not happening somehow."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/151908730","html_url":"https://github.com/godotengine/godot/issues/2570#issuecomment-151908730","issue_url":"https://api.github.com/repos/godotengine/godot/issues/2570","id":151908730,"user":{"login":"Brickcaster","id":13324089,"avatar_url":"https://avatars.githubusercontent.com/u/13324089?v=3","gravatar_id":"","url":"https://api.github.com/users/Brickcaster","html_url":"https://github.com/Brickcaster","followers_url":"https://api.github.com/users/Brickcaster/followers","following_url":"https://api.github.com/users/Brickcaster/following{/other_user}","gists_url":"https://api.github.com/users/Brickcaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Brickcaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brickcaster/subscriptions","organizations_url":"https://api.github.com/users/Brickcaster/orgs","repos_url":"https://api.github.com/users/Brickcaster/repos","events_url":"https://api.github.com/users/Brickcaster/events{/privacy}","received_events_url":"https://api.github.com/users/Brickcaster/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T16:56:26Z","updated_at":"2015-10-28T16:56:26Z","body":"I seem to have no clue what I'm doing.  I found where the problem is, I just don't really know exactly what's going on."}}