Use fully qualified name in the macro

This commit is contained in:
eugene yokota 2021-03-09 11:55:29 -05:00 committed by GitHub
parent 3d784b9217
commit 34a3f7fe64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ object Instance {
val tx = util.transformWrappers(tree, (n, tpe, t, replace) => sub(n, tpe, t, replace))
// resetting attributes must be: a) local b) done here and not wider or else there are obscure errors
val tr = makeApp(inner(tx))
val noWarn = q"""($tr: @scala.annotation.nowarn("cat=other-pure-statement"))"""
val noWarn = q"""($tr: @_root_.scala.annotation.nowarn("cat=other-pure-statement"))"""
c.Expr[i.M[N[T]]](noWarn)
}