Skip to content

Instantly share code, notes, and snippets.

@xeno-by
Created July 6, 2015 13:21
Show Gist options
  • Save xeno-by/d113ea78dfb7ee38ad6a to your computer and use it in GitHub Desktop.
Save xeno-by/d113ea78dfb7ee38ad6a to your computer and use it in GitHub Desktop.
diff --git a/src/compiler/scala/tools/nsc/typechecker/Macros.scala b/src/compiler/scala/tools/nsc/typechecker/Macros.scala
index 10aefae20b..1d09551244 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Macros.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Macros.scala
@@ -471,7 +471,7 @@ trait Macros extends MacroRuntimes with Traces with Helpers {
if (prefix == EmptyTree) macroDef.owner.tpe else prefix.tpe,
macroDef.owner)
} else
- targ.tpe
+ binding.targs(paramPos).tpe
context.WeakTypeTag(tpe)
})
macroLogVerbose(s"tags: $tags")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment