Index: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java |
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java |
index c199c828190c67cd948f2fa3fb4db88923ad795e..e5aa3f8d66cdfd575bc43e1737044e16594eb610 100644 |
--- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java |
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java |
@@ -86,7 +86,8 @@ public class ResolutionContext implements ResolutionErrorListener { |
if (!Elements.isConstructorParameter(element) |
&& !Elements.isParameterOfMethodWithoutBody(element) |
&& !(Elements.isStaticContext(element) && !Elements.isStaticContext(existingElement)) |
- && !existingElement.getModifiers().isAbstractField()) { |
+ && !existingElement.getModifiers().isAbstractField() |
+ && !Elements.isArtificialAssertMethod(existingElement)) { |
SourceInfo nameSourceInfo = element.getNameLocation(); |
String existingLocation = Elements.getRelativeElementLocation(element, existingElement); |
// TODO(scheglov) remove condition once HTML will be fixed to don't have duplicates. |