Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(537)

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_types.dart

Issue 13084013: Handle assignability for Send and SendSet (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Debug code removed. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/dart_types.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_types.dart b/sdk/lib/_internal/compiler/implementation/dart_types.dart
index 6f76fe64a4428268717040a82b7c05940215522f..6f0a248577d7e4ae1a6ae5f94ea93b4f17f7ece5 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_types.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_types.dart
@@ -509,7 +509,9 @@ class InterfaceType extends GenericType {
ClassElement classElement = element;
InterfaceType receiver = this;
InterfaceType declarer = receiver;
- Element member = classElement.lookupLocalMember(name);
+ // TODO(johnniwinther): Lookup and callers should handle private members and
+ // injected members.
+ Element member = classElement.implementation.lookupLocalMember(name);
if (member != null) {
return createMember(receiver, declarer, member);
}
@@ -521,7 +523,7 @@ class InterfaceType extends GenericType {
if (supertype.element.isMixinApplication) continue;
declarer = supertype;
ClassElement lookupTarget = declarer.element;
- member = lookupTarget.lookupLocalMember(name);
+ member = lookupTarget.implementation.lookupLocalMember(name);
if (member != null) {
return createMember(receiver, declarer, member);
}

Powered by Google App Engine
This is Rietveld 408576698