{"action":"opened","issue":{"url":"https://api.github.com/repos/jcoplien/trygve/issues/82","repository_url":"https://api.github.com/repos/jcoplien/trygve","labels_url":"https://api.github.com/repos/jcoplien/trygve/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/jcoplien/trygve/issues/82/comments","events_url":"https://api.github.com/repos/jcoplien/trygve/issues/82/events","html_url":"https://github.com/jcoplien/trygve/issues/82","id":135699001,"number":82,"title":"using split in requires seems to fail","user":{"login":"runefs","id":183532,"avatar_url":"https://avatars.githubusercontent.com/u/183532?v=3","gravatar_id":"","url":"https://api.github.com/users/runefs","html_url":"https://github.com/runefs","followers_url":"https://api.github.com/users/runefs/followers","following_url":"https://api.github.com/users/runefs/following{/other_user}","gists_url":"https://api.github.com/users/runefs/gists{/gist_id}","starred_url":"https://api.github.com/users/runefs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runefs/subscriptions","organizations_url":"https://api.github.com/users/runefs/orgs","repos_url":"https://api.github.com/users/runefs/repos","events_url":"https://api.github.com/users/runefs/events{/privacy}","received_events_url":"https://api.github.com/users/runefs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-23T10:35:19Z","updated_at":"2016-02-23T10:35:19Z","closed_at":null,"body":"The below code fails with a \"No viable alternative\", due to split in the requires section. This seems to be a very specific error, so I might have missed something but Iøve tried to rule that out.\r\n\r\n```\r\ncontext program {\r\n     role lines {\r\n     } requires {\r\n          String[] split(String str);          \r\n     }\r\n\r\n     public program(String input){\r\n            String[] parts = input.split(\" \");\r\n            lines = input;\r\n     }\r\n}\r\n```"}}