summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Namers.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-01-05 00:43:20 +0300
committerEugene Burmako <xeno.by@gmail.com>2013-01-09 08:10:47 +0100
commitbaef45632a2b48c0f881f11c339fb14d1c33f6c3 (patch)
tree6742600899e41c3057aec277d0786c4317cf6548 /src/compiler/scala/tools/nsc/typechecker/Namers.scala
parent1077c928f9961783a9efc16dde201efe8504c092 (diff)
downloadscala-baef45632a2b48c0f881f11c339fb14d1c33f6c3.tar.gz
scala-baef45632a2b48c0f881f11c339fb14d1c33f6c3.tar.bz2
scala-baef45632a2b48c0f881f11c339fb14d1c33f6c3.zip
changes isTermMacro checks to something more universal
Previously I wanted to be as precise as possible, but as the experience with type macros shows, a lot of isTermMacro checks should also extend to include type macros. Therefore I'm changing the checks to isMacro. This doesn't make any difference for existing code, but will reduce the amount of changes in the upcoming type macro pull request.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Namers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index b5160c0519..af8858bd60 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -1054,7 +1054,7 @@ trait Namers extends MethodSynthesis {
// because @macroImpl annotation only gets assigned during typechecking
// otherwise macro defs wouldn't be able to robustly coexist with their clients
// because a client could be typechecked before a macro def that it uses
- if (ddef.symbol.isTermMacro) {
+ if (ddef.symbol.isMacro) {
val pt = resultPt.substSym(tparamSyms, tparams map (_.symbol))
typer.computeMacroDefType(ddef, pt)
}