diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-01-05 00:43:20 +0300 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-01-09 08:10:47 +0100 |
commit | baef45632a2b48c0f881f11c339fb14d1c33f6c3 (patch) | |
tree | 6742600899e41c3057aec277d0786c4317cf6548 /src/compiler/scala/tools/nsc/transform/Mixin.scala | |
parent | 1077c928f9961783a9efc16dde201efe8504c092 (diff) | |
download | scala-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/transform/Mixin.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/Mixin.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Mixin.scala b/src/compiler/scala/tools/nsc/transform/Mixin.scala index 0769b67282..6a253a98b1 100644 --- a/src/compiler/scala/tools/nsc/transform/Mixin.scala +++ b/src/compiler/scala/tools/nsc/transform/Mixin.scala @@ -1089,7 +1089,7 @@ abstract class Mixin extends InfoTransform with ast.TreeDSL { // add forwarders assert(sym.alias != NoSymbol, sym) // debuglog("New forwarder: " + sym.defString + " => " + sym.alias.defString) - if (!sym.isTermMacro) addDefDef(sym, Apply(staticRef(sym.alias), gen.mkAttributedThis(clazz) :: sym.paramss.head.map(Ident))) + if (!sym.isMacro) addDefDef(sym, Apply(staticRef(sym.alias), gen.mkAttributedThis(clazz) :: sym.paramss.head.map(Ident))) } } } |