You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.scala:4: error: macro implementation has wrong shape:
required: (c: scala.reflect.macros.Context)(): c.Expr[Any]
found : (c: scala.reflect.macros.Context): c.Tree
number of parameter sections differ
def apply() = macro impl
^
one error found
Is a bit confusing because c.Tree is indeed a legal return type, you don't have to wrap everything into c.Expr any more. (The real problem here is mismatch between shapes of the arguments lists.)
The text was updated successfully, but these errors were encountered:
Error message on the wrong shape of macro definition like:
That currently looks like:
Is a bit confusing because c.Tree is indeed a legal return type, you don't have to wrap everything into c.Expr any more. (The real problem here is mismatch between shapes of the arguments lists.)
The text was updated successfully, but these errors were encountered: