Index: pkg/compiler/lib/src/deferred_load.dart |
diff --git a/pkg/compiler/lib/src/deferred_load.dart b/pkg/compiler/lib/src/deferred_load.dart |
index 5a02f036f51e3709186bcee8cca970077649de1f..2b0b7fc7882639f7f25ce9534caa4f05da44f05f 100644 |
--- a/pkg/compiler/lib/src/deferred_load.dart |
+++ b/pkg/compiler/lib/src/deferred_load.dart |
@@ -25,6 +25,7 @@ import 'js_backend/js_backend.dart' show |
JavaScriptBackend; |
import 'elements/elements.dart' show |
+ AccessorElement, |
AstElement, |
ClassElement, |
Element, |
@@ -240,7 +241,7 @@ class DeferredLoadTask extends CompilerTask { |
element = element.enclosingClass; |
} |
if (element.isAccessor) { |
- element = (element as FunctionElement).abstractField; |
+ element = (element as AccessorElement).abstractField; |
} |
return library.getImportsFor(element); |
} |