{"action":"created","issue":{"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/98","repository_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery","labels_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/98/comments","events_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/98/events","html_url":"https://github.com/krzysztofzablocki/Sourcery/issues/98","id":198504446,"number":98,"title":"Crash when `()` is used as Void","user":{"login":"bolismauro","id":771999,"avatar_url":"https://avatars.githubusercontent.com/u/771999?v=3","gravatar_id":"","url":"https://api.github.com/users/bolismauro","html_url":"https://github.com/bolismauro","followers_url":"https://api.github.com/users/bolismauro/followers","following_url":"https://api.github.com/users/bolismauro/following{/other_user}","gists_url":"https://api.github.com/users/bolismauro/gists{/gist_id}","starred_url":"https://api.github.com/users/bolismauro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolismauro/subscriptions","organizations_url":"https://api.github.com/users/bolismauro/orgs","repos_url":"https://api.github.com/users/bolismauro/repos","events_url":"https://api.github.com/users/bolismauro/events{/privacy}","received_events_url":"https://api.github.com/users/bolismauro/received_events","type":"User","site_admin":false},"labels":[{"id":498633814,"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/labels/bug","name":"bug","color":"ee0701","default":true},{"id":511424936,"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/labels/fixed%20on%20master","name":"fixed on master","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-03T15:55:34Z","updated_at":"2017-01-07T12:19:23Z","closed_at":"2017-01-05T22:27:03Z","body":"The following code makes Sourcery crash\r\n\r\n```swift\r\nstruct AnAction {\r\n  typealias LoadingPayload = Request\r\n  typealias CompletedPayload = CGRect\r\n  typealias FailedPayload = ()\r\n}\r\n```\r\n\r\nWorkaround: Change `()` with `Void`\r\n\r\nThe code crashes here\r\n```swift\r\n            guard let alias = extract(tokens[index + 1], contents: contents),\r\n                let type = extract(tokens[index + 2], contents: contents) else {\r\n                    continue\r\n            }\r\n```\r\nIn `parseTypealiases`\r\n\r\nIt basically tries to access to a out of range index\r\n\r\nSourcery version: 0.5.0"},"comment":{"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/comments/271080417","html_url":"https://github.com/krzysztofzablocki/Sourcery/issues/98#issuecomment-271080417","issue_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/98","id":271080417,"user":{"login":"bolismauro","id":771999,"avatar_url":"https://avatars.githubusercontent.com/u/771999?v=3","gravatar_id":"","url":"https://api.github.com/users/bolismauro","html_url":"https://github.com/bolismauro","followers_url":"https://api.github.com/users/bolismauro/followers","following_url":"https://api.github.com/users/bolismauro/following{/other_user}","gists_url":"https://api.github.com/users/bolismauro/gists{/gist_id}","starred_url":"https://api.github.com/users/bolismauro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolismauro/subscriptions","organizations_url":"https://api.github.com/users/bolismauro/orgs","repos_url":"https://api.github.com/users/bolismauro/repos","events_url":"https://api.github.com/users/bolismauro/events{/privacy}","received_events_url":"https://api.github.com/users/bolismauro/received_events","type":"User","site_admin":false},"created_at":"2017-01-07T12:19:23Z","updated_at":"2017-01-07T12:19:23Z","body":"it was an error in my configuration.\r\nI can confirm it works. Amazing works as usual, thanks!"}}
{"actor":{"display_login":"bolismauro"}}