{"action":"created","issue":{"url":"https://api.github.com/repos/puffnfresh/wartremover/issues/179","labels_url":"https://api.github.com/repos/puffnfresh/wartremover/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/puffnfresh/wartremover/issues/179/comments","events_url":"https://api.github.com/repos/puffnfresh/wartremover/issues/179/events","html_url":"https://github.com/puffnfresh/wartremover/issues/179","id":90219017,"number":179,"title":"`NoNeedForMonad` throws a `MatchError` on legal code","user":{"login":"nbraud","id":1155801,"avatar_url":"https://avatars.githubusercontent.com/u/1155801?v=3","gravatar_id":"","url":"https://api.github.com/users/nbraud","html_url":"https://github.com/nbraud","followers_url":"https://api.github.com/users/nbraud/followers","following_url":"https://api.github.com/users/nbraud/following{/other_user}","gists_url":"https://api.github.com/users/nbraud/gists{/gist_id}","starred_url":"https://api.github.com/users/nbraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbraud/subscriptions","organizations_url":"https://api.github.com/users/nbraud/orgs","repos_url":"https://api.github.com/users/nbraud/repos","events_url":"https://api.github.com/users/nbraud/events{/privacy}","received_events_url":"https://api.github.com/users/nbraud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-22T21:36:16Z","updated_at":"2015-06-23T06:25:47Z","closed_at":null,"body":"I have some code which compiles cleanly without wartremover, and wartremover throws an uncatched `MatchError` on it. The [offending lines](https://github.com/nbraud/tox4j/commit/f11ff9e6aeef16eff6c43a19f29b59ffb7a28176#diff-1e44779f6297eaf301cdfcd0543f9d87R54) seems to be:\r\n```scala\r\nfor ((byte, i) <- data.zipWithIndex) {\r\n  slice.buffer.put(offset + i, byte)\r\n}\r\n```\r\n\r\nStacktrace here: https://gist.github.com/nbraud/a0b1917d28560ba35927"},"comment":{"url":"https://api.github.com/repos/puffnfresh/wartremover/issues/comments/114376172","html_url":"https://github.com/puffnfresh/wartremover/issues/179#issuecomment-114376172","issue_url":"https://api.github.com/repos/puffnfresh/wartremover/issues/179","id":114376172,"user":{"login":"folone","id":366132,"avatar_url":"https://avatars.githubusercontent.com/u/366132?v=3","gravatar_id":"","url":"https://api.github.com/users/folone","html_url":"https://github.com/folone","followers_url":"https://api.github.com/users/folone/followers","following_url":"https://api.github.com/users/folone/following{/other_user}","gists_url":"https://api.github.com/users/folone/gists{/gist_id}","starred_url":"https://api.github.com/users/folone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folone/subscriptions","organizations_url":"https://api.github.com/users/folone/orgs","repos_url":"https://api.github.com/users/folone/repos","events_url":"https://api.github.com/users/folone/events{/privacy}","received_events_url":"https://api.github.com/users/folone/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T06:25:47Z","updated_at":"2015-06-23T06:25:47Z","body":"It looks like binding the value in the for-comprehension, and using unapply to extract parts of it at the same time, produces that. Will have a look."}}