macrame
macrame copied to clipboard
@delegate fails with "recursive value byline needs type"
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)
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.