macrame icon indicating copy to clipboard operation
macrame copied to clipboard

@delegate fails with "recursive value byline needs type"

Open ClaireNeveu opened this issue 8 years ago • 1 comments

The following code causes /home/chris/Programming/macrame/macrame/src/test/scala/macrame/PostDelegateFailure.scala:9: recursive value byline needs type

object Post {
   final case class Byline()
}

final case class CleanPost(byline : Option[Post.Byline] = None)

final case class Post(@delegate clean : CleanPost)

ClaireNeveu avatar Mar 01 '17 15:03 ClaireNeveu

According to showRaw the tree output here is completely identical to the non-macro case (final case class Post(clean : CleanPost) { def byline = clean.byline } which is baffling to say the least.

ClaireNeveu avatar Mar 01 '17 15:03 ClaireNeveu