Index: lib/compiler/implementation/universe/partial_type_tree.dart |
=================================================================== |
--- lib/compiler/implementation/universe/partial_type_tree.dart (revision 14453) |
+++ lib/compiler/implementation/universe/partial_type_tree.dart (working copy) |
@@ -63,7 +63,9 @@ |
// TODO(kasperl): Move this to the Selector class? |
ClassElement selectorType(Selector selector) { |
DartType type = selector.receiverType; |
- return (type != null) ? type.element : compiler.objectClass; |
+ if (type == null) return compiler.objectClass; |
+ if (type.element.isTypedef()) return compiler.functionClass; |
ahe
2012/11/05 08:33:32
I think this deserves a TODO. You're throwing away
ngeoffray
2012/11/05 10:51:03
Done.
|
+ return type.element; |
} |
/** |