{"action":"created","issue":{"url":"https://api.github.com/repos/TeamShadow/shadow/issues/18","labels_url":"https://api.github.com/repos/TeamShadow/shadow/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/TeamShadow/shadow/issues/18/comments","events_url":"https://api.github.com/repos/TeamShadow/shadow/issues/18/events","html_url":"https://github.com/TeamShadow/shadow/issues/18","id":71971547,"number":18,"title":"Currently, it appears that single line case statements need braces.","user":{"login":"schubertr","id":12142014,"avatar_url":"https://avatars.githubusercontent.com/u/12142014?v=3","gravatar_id":"","url":"https://api.github.com/users/schubertr","html_url":"https://github.com/schubertr","followers_url":"https://api.github.com/users/schubertr/followers","following_url":"https://api.github.com/users/schubertr/following{/other_user}","gists_url":"https://api.github.com/users/schubertr/gists{/gist_id}","starred_url":"https://api.github.com/users/schubertr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schubertr/subscriptions","organizations_url":"https://api.github.com/users/schubertr/orgs","repos_url":"https://api.github.com/users/schubertr/repos","events_url":"https://api.github.com/users/schubertr/events{/privacy}","received_events_url":"https://api.github.com/users/schubertr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T19:51:58Z","updated_at":"2015-04-30T18:02:02Z","closed_at":null,"body":"I was unable to compile the [SwitchTest.shadow](https://github.com/TeamShadow/shadow/blob/master/shadow/test/SwitchTest.shadow) program without fixing it. I was getting this error:\r\n\r\n    PARSE ERROR: (SwitchTest.shadow) [17:44] Encountered \"out\"\r\n    Was expecting:\r\n        \"{\" ...\r\n    \r\nI went through and adjusted all the single line case statements (and default cases) from this:\r\n\r\n    case( 3 ) \r\n    \tout.printLine(\"Three!\");\r\n    case( 4 ) \r\n    \tout.printLine(\"Four!\");\r\n\r\nTo this:\r\n\r\n    case( 3 ) \r\n    {\r\n\t  out.printLine(\"Three!\");\r\n    }\t\t\t\t\t\r\n    case( 4s ) \r\n    {\r\n\t  out.printLine(\"Four!\");\r\n    }\t\t\t\r\n\r\nAfter doing so, I was able to compile and run the program successfully. I'm not sure if this is an issue for everyone, but it seemed important enough to document."},"comment":{"url":"https://api.github.com/repos/TeamShadow/shadow/issues/comments/97899563","html_url":"https://github.com/TeamShadow/shadow/issues/18#issuecomment-97899563","issue_url":"https://api.github.com/repos/TeamShadow/shadow/issues/18","id":97899563,"user":{"login":"bwittman","id":7459448,"avatar_url":"https://avatars.githubusercontent.com/u/7459448?v=3","gravatar_id":"","url":"https://api.github.com/users/bwittman","html_url":"https://github.com/bwittman","followers_url":"https://api.github.com/users/bwittman/followers","following_url":"https://api.github.com/users/bwittman/following{/other_user}","gists_url":"https://api.github.com/users/bwittman/gists{/gist_id}","starred_url":"https://api.github.com/users/bwittman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwittman/subscriptions","organizations_url":"https://api.github.com/users/bwittman/orgs","repos_url":"https://api.github.com/users/bwittman/repos","events_url":"https://api.github.com/users/bwittman/events{/privacy}","received_events_url":"https://api.github.com/users/bwittman/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T18:02:02Z","updated_at":"2015-04-30T18:02:02Z","body":"That's strange.  You're sure that your `shadowc` is pointing at the latest version of shadow.jar?\r\n\r\nMy `SwitchTest.shadow` works fine.\r\n\r\n\r\n\r\n"}}