{"action":"created","issue":{"url":"https://api.github.com/repos/milessabin/shapeless/issues/368","labels_url":"https://api.github.com/repos/milessabin/shapeless/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/milessabin/shapeless/issues/368/comments","events_url":"https://api.github.com/repos/milessabin/shapeless/issues/368/events","html_url":"https://github.com/milessabin/shapeless/issues/368","id":69456949,"number":368,"title":"non-trivial AST breaks the coproduct derivations","user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-19T19:35:10Z","updated_at":"2015-04-29T08:00:08Z","closed_at":null,"body":"I extended the `sexp.scala` with a non-trivial AST https://github.com/fommil/shapeless/blob/sexp_ast/examples/src/main/scala/shapeless/examples/sexp.scala\r\n\r\n(copied to https://gist.github.com/fommil/1552641fad3daf36b8af for posterity)\r\n\r\nbut I see this compilation error\r\n\r\n```\r\n[error] examples/src/main/scala/shapeless/examples/sexp.scala:171: unreachable code\r\n[error]   val complex = SexpConvert[TokenTree]\r\n[error]                            ^\r\n```\r\n\r\nThe AST is a little simpler than the one I actually wanted to test, but I don't expect the simplifications to be relevant to shapeless.\r\n\r\n**UPDATE**: the break seems to be on the final item, remove `with Term` from the definition of `QualifierToken` and it seems to compile. So it looks like multiple inheritance is flagging up a bug."},"comment":{"url":"https://api.github.com/repos/milessabin/shapeless/issues/comments/97338994","html_url":"https://github.com/milessabin/shapeless/issues/368#issuecomment-97338994","issue_url":"https://api.github.com/repos/milessabin/shapeless/issues/368","id":97338994,"user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T08:00:08Z","updated_at":"2015-04-29T08:00:08Z","body":"you told me told to send a PR :-P\r\n\r\n(luckily I created a branch just incase you changed your mind ;-))"}}