Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java |
diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java |
index c6fc65acb3a2d7214ed7608e51e655fb504fff79..c766ad0a431cf2d28774dc2bc8a4f2219557f656 100644 |
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java |
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java |
@@ -1606,7 +1606,8 @@ public class TypeAnalyzer implements DartCompilationPhase { |
// remember unimplemented members |
{ |
List<Element> unimplementedMembers = findUnimplementedMembers(element); |
- if (!node.getModifiers().isAbstract() && !unimplementedMembers.isEmpty()) { |
+ if (!node.getModifiers().isAbstract() && !unimplementedMembers.isEmpty() && |
+ (reportNoMemberWhenHasInterceptor || !Elements.handlesNoSuchMethod(type))) { |
StringBuilder sb = getUnimplementedMembersMessage(element, unimplementedMembers); |
onError(node.getName(), TypeErrorCode.CONTRETE_CLASS_WITH_UNIMPLEMENTED_MEMBERS, |
node.getName(), sb.toString()); |