Index: runtime/vm/resolver.cc |
=================================================================== |
--- runtime/vm/resolver.cc (revision 24189) |
+++ runtime/vm/resolver.cc (working copy) |
@@ -138,7 +138,7 @@ |
// Getter invocation might actually be a method extraction. |
if (is_getter && function.IsNull()) { |
function ^= cls.LookupDynamicFunction(field_name); |
- if (!function.IsNull()) { |
+ if (!function.IsNull() && !function.IsNoSuchMethodDispatcher()) { |
Ivan Posva
2013/06/20 17:21:08
Please add a language test which verifies this.
Florian Schneider
2013/06/21 06:46:26
Done. Added test, but it is also covered by tests/
|
// We were looking for the getter but found a method with the same name. |
// Create a method extractor and return it. |
function ^= CreateMethodExtractor(function_name, function); |