Index: pkg/compiler/lib/src/dart_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart |
index 717d7a7dadce89071d63253c94cf0301a178702a..47d942c8cdf0c17d399fbe2b9c5c671329be0e05 100644 |
--- a/pkg/compiler/lib/src/dart_backend/backend.dart |
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart |
@@ -296,13 +296,11 @@ class DartBackend extends Backend { |
// Register selectors for all instance methods since these might |
// be called on user classes from within the platform |
// implementation. |
- superclass.forEachLocalMember((Element element) { |
+ superclass.forEachLocalMember((MemberElement element) { |
if (element.isConstructor || element.isStatic) return; |
FunctionElement function = element.asFunctionElement(); |
- if (function != null) { |
- function.computeSignature(compiler); |
- } |
+ element.computeType(compiler); |
Selector selector = new Selector.fromElement(element); |
if (selector.isGetter) { |
registry.registerDynamicGetter(selector); |