Skip to content

Commit

Permalink
Allow macro definitions to be erased
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Jul 27, 2018
1 parent 72370fd commit 1308cd0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/src/dotty/tools/dotc/transform/PostTyper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisPhase
if (c.owner eq c.outer.owner) markAsMacro(c.outer)
else if (c.owner.isTransparentMethod) {
c.owner.setFlag(Macro)
c.owner.resetFlag(Erased) // FIXME: Macros should be Erased, but that causes problems right now
}
else if (!c.outer.owner.is(Package)) markAsMacro(c.outer)

Expand Down

0 comments on commit 1308cd0

Please sign in to comment.