Index: pkg/compiler/lib/src/serialization/equivalence.dart |
diff --git a/pkg/compiler/lib/src/serialization/equivalence.dart b/pkg/compiler/lib/src/serialization/equivalence.dart |
index 4456623fbf66dd9b687a60ae2ed91190f9c02f97..9db38fdff5449eb60cdf9a853058ab4e520bce93 100644 |
--- a/pkg/compiler/lib/src/serialization/equivalence.dart |
+++ b/pkg/compiler/lib/src/serialization/equivalence.dart |
@@ -516,14 +516,18 @@ class ElementIdentityEquivalence extends BaseElementVisitor<bool, Element> { |
bool visitLocalFunctionElement( |
LocalFunctionElement element1, LocalFunctionElement element2) { |
// TODO(johnniwinther): Define an equivalence on locals. |
- return checkMembers(element1.memberContext, element2.memberContext); |
+ return strategy.test( |
+ element1, element2, 'name', element1.name, element2.name) && |
+ checkMembers(element1.memberContext, element2.memberContext); |
} |
@override |
bool visitLocalVariableElement( |
LocalVariableElement element1, LocalVariableElement element2) { |
// TODO(johnniwinther): Define an equivalence on locals. |
- return checkMembers(element1.memberContext, element2.memberContext); |
+ return strategy.test( |
+ element1, element2, 'name', element1.name, element2.name) && |
+ checkMembers(element1.memberContext, element2.memberContext); |
} |
bool visitAbstractFieldElement( |