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

Unified Diff: dart/pkg/compiler/lib/src/resolution/class_members.dart

Issue 811933004: Update invariant in class_members.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/compiler/lib/src/resolution/class_members.dart
diff --git a/dart/pkg/compiler/lib/src/resolution/class_members.dart b/dart/pkg/compiler/lib/src/resolution/class_members.dart
index 7fd7edc321700678abd130ec76a726c0452d82f9..aaa40aa3707f472053433d66f0ab443547ce08d0 100644
--- a/dart/pkg/compiler/lib/src/resolution/class_members.dart
+++ b/dart/pkg/compiler/lib/src/resolution/class_members.dart
@@ -368,7 +368,10 @@ abstract class MembersCreator {
DartType declaredType = declared.functionType;
for (Member inherited in superMember.declarations) {
- if (cls == inherited.declarer.element) {
+ if (inherited.element == declared.element) {
+ // TODO(ahe): For some reason, "call" elements are repeated in
+ // superMember.declarations. Investigate why.
+ } else if (cls == inherited.declarer.element) {
// An error should already have been reported.
assert(invariant(declared.element, compiler.compilationFailed));
continue;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698