{"action":"opened","issue":{"url":"https://api.github.com/repos/fomkin/pushka/issues/17","labels_url":"https://api.github.com/repos/fomkin/pushka/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/fomkin/pushka/issues/17/comments","events_url":"https://api.github.com/repos/fomkin/pushka/issues/17/events","html_url":"https://github.com/fomkin/pushka/issues/17","id":117784460,"number":17,"title":"Regression in 0.3.1","user":{"login":"LMnet","id":2826500,"avatar_url":"https://avatars.githubusercontent.com/u/2826500?v=3","gravatar_id":"","url":"https://api.github.com/users/LMnet","html_url":"https://github.com/LMnet","followers_url":"https://api.github.com/users/LMnet/followers","following_url":"https://api.github.com/users/LMnet/following{/other_user}","gists_url":"https://api.github.com/users/LMnet/gists{/gist_id}","starred_url":"https://api.github.com/users/LMnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LMnet/subscriptions","organizations_url":"https://api.github.com/users/LMnet/orgs","repos_url":"https://api.github.com/users/LMnet/repos","events_url":"https://api.github.com/users/LMnet/events{/privacy}","received_events_url":"https://api.github.com/users/LMnet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-19T10:26:55Z","updated_at":"2015-11-19T10:26:55Z","closed_at":null,"body":"In 0.3.0 this code is compilating successfully:\r\n```scala\r\n@pushka\r\nsealed trait RequestChanges\r\n\r\nobject RequestChanges {\r\n\r\n  case object Started extends RequestChanges\r\n\r\n  case object ChildUpdated extends RequestChanges\r\n\r\n  case object Assigned extends RequestChanges\r\n\r\n  case object Submitted extends RequestChanges\r\n\r\n  case object Finished extends RequestChanges\r\n\r\n  case class Cancelled(initiatorId: Id[Agent]) extends RequestChanges\r\n\r\n  case object Checked extends RequestChanges\r\n\r\n  // case class ChannelMessage\r\n\r\n}\r\n\r\n@pushka\r\nsealed trait PushEvent\r\n\r\nobject PushEvent {\r\n\r\n  case class Identified(sessionId: String) extends PushEvent\r\n\r\n  case class ServerError(requestId: Long, message: String) extends PushEvent\r\n\r\n  case class ChannelNewParticipant(participantId: Agent) extends PushEvent\r\n\r\n  case class ChannelSubscribed(channelDto: ChannelDto) extends PushEvent\r\n\r\n  case class ChannelUnsubscribed(channelId: Id[Channel], participantId: Id[Agent]) extends PushEvent\r\n\r\n  case class ChannelNewMessage(channelId: Id[Channel], channelMessage: ChannelMessage) extends PushEvent\r\n\r\n  case class RequestUpdated(requestDto: RequestDto, changes: RequestChanges) extends PushEvent\r\n\r\n  case class ProfileUpdated(userId: Id[User], profile: Seq[User.ProfileField]) extends PushEvent\r\n\r\n  case class FeedActivityUpdated(updatedActivityDto: ActivityDto) extends PushEvent\r\n\r\n  case class InvalidToken(token: String) extends PushEvent\r\n\r\n}\r\n```\r\n\r\nBut on 0.3.1 version I have compilation errors:\r\n```\r\n[error] /home/lmnet/Work/Projects/involve/shared/src/main/scala/involve/protocol/push/RequestChanges.scala:6: exception during macro expansion: \r\n[error] scala.MatchError: case object Checked extends RequestChanges with scala.Product with scala.Serializable {\r\n[error]   def <init>() = {\r\n[error]     super.<init>();\r\n[error]     ()\r\n[error]   }\r\n[error] } (of class scala.reflect.internal.Trees$ModuleDef)\r\n[error]         at pushka.annotation.pushkaMacro$$anonfun$modifiedCompanion$1$1.apply(pushka.scala:208)\r\n[error]         at pushka.annotation.pushkaMacro$$anonfun$modifiedCompanion$1$1.apply(pushka.scala:206)\r\n[error]         at scala.Option.map(Option.scala:146)\r\n[error]         at pushka.annotation.pushkaMacro$.modifiedCompanion$1(pushka.scala:206)\r\n[error]         at pushka.annotation.pushkaMacro$.checkCaseClass$1(pushka.scala:126)\r\n[error]         at pushka.annotation.pushkaMacro$.genUpdatedBody$1(pushka.scala:132)\r\n[error]         at pushka.annotation.pushkaMacro$.sealedTraitRW$1(pushka.scala:163)\r\n[error]         at pushka.annotation.pushkaMacro$.modifiedDeclaration$1(pushka.scala:230)\r\n[error]         at pushka.annotation.pushkaMacro$.impl(pushka.scala:249)\r\n[error]         at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)\r\n[error]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n[error]         at java.lang.reflect.Method.invoke(Method.java:497)\r\n[error]         at scala.reflect.macros.runtime.JavaReflectionRuntimes$JavaReflectionResolvers$$anonfun$resolveJavaReflectionRuntime$2.apply(JavaReflectionRuntimes.scala:34)\r\n[error]         at scala.reflect.macros.runtime.JavaReflectionRuntimes$JavaReflectionResolvers$$anonfun$resolveJavaReflectionRuntime$2.apply(JavaReflectionRuntimes.scala:22)\r\n[error]         at scala.tools.nsc.typechecker.Macros$class.macroExpandWithRuntime(Macros.scala:756)\r\n[error] @pushka\r\n[error]  ^\r\n[error] /home/lmnet/Work/Projects/involve/shared/src/main/scala/involve/protocol/push/PushEvent.scala:7: could not find implicit value for parameter r: pushka.Reader[involve.protocol.push.RequestChanges]\r\n[error] @pushka\r\n[error]  ^\r\n```"}}