Skip to content

Commit 80a02af

Browse files
authored
Merge pull request #128 from dwijnand/macro-hygiene
Be hygienic in the use of Manifest in macros
2 parents 3aa90a0 + 126e25c commit 80a02af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/sbtbuildinfo/package.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ package object sbtbuildinfo {
5454

5555
def taskImpl(key: Tree): Tree = {
5656
val A = key.tpe.typeArgs.head
57-
q"$BuildInfoKey.taskValue[$A]($key.taskValue)($key.key.manifest.typeArguments.head.asInstanceOf[Manifest[$A]])"
57+
q"$BuildInfoKey.taskValue[$A]($key.taskValue)($key.key.manifest.typeArguments.head.asInstanceOf[_root_.scala.reflect.Manifest[$A]])"
5858
}
5959

6060
@deprecated("No longer used", "0.9.0")
@@ -66,7 +66,7 @@ package object sbtbuildinfo {
6666

6767
case tpe if tpe <:< typeOf[TaskKey[_]] =>
6868
val A = tpe.typeArgs.head
69-
q"$BuildInfoKey.taskValue[$A]($x.taskValue)($x.key.manifest.typeArguments.head.asInstanceOf[Manifest[$A]])"
69+
q"$BuildInfoKey.taskValue[$A]($x.taskValue)($x.key.manifest.typeArguments.head.asInstanceOf[_root_.scala.reflect.Manifest[$A]])"
7070

7171
case tpe if tpe <:< typeOf[(_, _)] =>
7272
val A = tpe.typeArgs.tail.head

0 commit comments

Comments
 (0)