From 1308cd06249581271a8613def502ee2eae6a8b91 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Fri, 27 Jul 2018 14:51:56 +0200 Subject: [PATCH] Allow macro definitions to be erased --- compiler/src/dotty/tools/dotc/transform/PostTyper.scala | 1 - 1 file changed, 1 deletion(-) 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)