Index: pkg/compiler/lib/src/closure.dart |
diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart |
index f9885ba2a4e424bee9f0db99a090f847f7747c67..8aa5298c192357abe6ffe7e2fe0aa8f55300382b 100644 |
--- a/pkg/compiler/lib/src/closure.dart |
+++ b/pkg/compiler/lib/src/closure.dart |
@@ -52,6 +52,8 @@ class ClosureTask extends CompilerTask { |
void createClosureClasses() { |
compiler.enqueuer.resolution.processedElements |
.forEach((AstElement element) { |
+ // TODO(johnniwinther): Typedefs should never be in processedElements. |
+ if (element.isTypedef) return; |
ResolvedAst resolvedAst = element.resolvedAst; |
if (element.isAbstract) return; |
if (element.isField && |