diff --git a/compiler/src/dotty/tools/dotc/transform/PostTyper.scala b/compiler/src/dotty/tools/dotc/transform/PostTyper.scala index f3a8e88b7f1a..a5b78a2c0ebf 100644 --- a/compiler/src/dotty/tools/dotc/transform/PostTyper.scala +++ b/compiler/src/dotty/tools/dotc/transform/PostTyper.scala @@ -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)