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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Scope.java

Issue 8966029: Report errors and warnings for hiding elements, issue 572. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for comments Created 9 years 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: compiler/java/com/google/dart/compiler/resolver/Scope.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Scope.java b/compiler/java/com/google/dart/compiler/resolver/Scope.java
index aa82908693889083d9ac596738eec8b26d84becf..7175766ef2ae035ccae399585b40a5647a12e0cb 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Scope.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Scope.java
@@ -51,7 +51,7 @@ public class Scope {
// or we are ignoring libraries (i.e., fromLibrary == null).
if (fromLibrary == null
|| !DartIdentifier.isPrivateName(name)
- || library.equals(fromLibrary)) {
+ || fromLibrary.equals(library)) {
element = findLocalElement(name);
}
if (element == null) {

Powered by Google App Engine
This is Rietveld 408576698