Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val (className, fields) = try {
- val q"case class $className(..$fields) extends ..$bases { ..$body }" = classDecl
- (className, fields)
- } catch {
- case _: MatchError => c.abort(c.enclosingPosition, "Annotation is only supported on case class")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement