{"action":"created","issue":{"url":"https://api.github.com/repos/miniboxing/miniboxing-plugin/issues/181","labels_url":"https://api.github.com/repos/miniboxing/miniboxing-plugin/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/miniboxing/miniboxing-plugin/issues/181/comments","events_url":"https://api.github.com/repos/miniboxing/miniboxing-plugin/issues/181/events","html_url":"https://github.com/miniboxing/miniboxing-plugin/issues/181","id":58782783,"number":181,"title":"adding miniboxing annotation makes tailrec fail","user":{"login":"julien-truffaut","id":1859417,"avatar_url":"https://avatars.githubusercontent.com/u/1859417?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-truffaut","html_url":"https://github.com/julien-truffaut","followers_url":"https://api.github.com/users/julien-truffaut/followers","following_url":"https://api.github.com/users/julien-truffaut/following{/other_user}","gists_url":"https://api.github.com/users/julien-truffaut/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-truffaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-truffaut/subscriptions","organizations_url":"https://api.github.com/users/julien-truffaut/orgs","repos_url":"https://api.github.com/users/julien-truffaut/repos","events_url":"https://api.github.com/users/julien-truffaut/events{/privacy}","received_events_url":"https://api.github.com/users/julien-truffaut/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/miniboxing/miniboxing-plugin/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"VladUreche","id":428706,"avatar_url":"https://avatars.githubusercontent.com/u/428706?v=3","gravatar_id":"","url":"https://api.github.com/users/VladUreche","html_url":"https://github.com/VladUreche","followers_url":"https://api.github.com/users/VladUreche/followers","following_url":"https://api.github.com/users/VladUreche/following{/other_user}","gists_url":"https://api.github.com/users/VladUreche/gists{/gist_id}","starred_url":"https://api.github.com/users/VladUreche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladUreche/subscriptions","organizations_url":"https://api.github.com/users/VladUreche/orgs","repos_url":"https://api.github.com/users/VladUreche/repos","events_url":"https://api.github.com/users/VladUreche/events{/privacy}","received_events_url":"https://api.github.com/users/VladUreche/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/miniboxing/miniboxing-plugin/milestones/1","html_url":"https://github.com/miniboxing/miniboxing-plugin/milestones/0.4","labels_url":"https://api.github.com/repos/miniboxing/miniboxing-plugin/milestones/1/labels","id":823065,"number":1,"title":"0.4","description":"","creator":{"login":"VladUreche","id":428706,"avatar_url":"https://avatars.githubusercontent.com/u/428706?v=3","gravatar_id":"","url":"https://api.github.com/users/VladUreche","html_url":"https://github.com/VladUreche","followers_url":"https://api.github.com/users/VladUreche/followers","following_url":"https://api.github.com/users/VladUreche/following{/other_user}","gists_url":"https://api.github.com/users/VladUreche/gists{/gist_id}","starred_url":"https://api.github.com/users/VladUreche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladUreche/subscriptions","organizations_url":"https://api.github.com/users/VladUreche/orgs","repos_url":"https://api.github.com/users/VladUreche/repos","events_url":"https://api.github.com/users/VladUreche/events{/privacy}","received_events_url":"https://api.github.com/users/VladUreche/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":36,"state":"open","created_at":"2014-10-12T21:41:17Z","updated_at":"2015-02-24T22:14:39Z","due_on":"2015-03-30T22:00:00Z","closed_at":null},"comments":7,"created_at":"2015-02-24T18:33:38Z","updated_at":"2015-02-25T13:06:21Z","closed_at":"2015-02-24T22:14:39Z","body":"I implemented a very basic linked list and then tried to use miniboxing to see the performance boost. However, all methods with a tailrec annotations produce the following error once I added the miniboxing annotation:\r\n```\r\nError:(29, 50) could not optimize @tailrec annotated method drop: it contains a recursive call not in tail position\r\n  @tailrec final def drop(n: Int): ConsList[A] = this match {\r\n                                                 ^\r\n``` \r\n\r\nHere is a link to the implementation: https://github.com/julien-truffaut/brique/blob/miniboxing/core/src/main/scala/brique/ConsList.scala#L35\r\n\r\nJust to be clear, tailrec was working perfectly well before I added the miniboxing annotation."},"comment":{"url":"https://api.github.com/repos/miniboxing/miniboxing-plugin/issues/comments/75956284","html_url":"https://github.com/miniboxing/miniboxing-plugin/issues/181#issuecomment-75956284","issue_url":"https://api.github.com/repos/miniboxing/miniboxing-plugin/issues/181","id":75956284,"user":{"login":"julien-truffaut","id":1859417,"avatar_url":"https://avatars.githubusercontent.com/u/1859417?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-truffaut","html_url":"https://github.com/julien-truffaut","followers_url":"https://api.github.com/users/julien-truffaut/followers","following_url":"https://api.github.com/users/julien-truffaut/following{/other_user}","gists_url":"https://api.github.com/users/julien-truffaut/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-truffaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-truffaut/subscriptions","organizations_url":"https://api.github.com/users/julien-truffaut/orgs","repos_url":"https://api.github.com/users/julien-truffaut/repos","events_url":"https://api.github.com/users/julien-truffaut/events{/privacy}","received_events_url":"https://api.github.com/users/julien-truffaut/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T13:06:21Z","updated_at":"2015-02-25T13:06:21Z","body":"Thanks for the answer, I think I got your point. I am looking forward to watch your presentation."}}