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

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: Fix dart2dart bugs. 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 ecee2ba0a21f362a9597705684b6836750e0f523..1b94d1e25946761a170f3103cec806fb10209fcc 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_types.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_types.dart
@@ -521,7 +521,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);
}
@@ -533,7 +535,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