| 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 8b6f83ca711ed6fd171e9f2cf8e172e773697b87..ee9743b770af253d397631431892a8a911bd9f8e 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
|
| @@ -81,16 +81,6 @@ public class ResolutionContext implements ResolutionErrorListener {
|
| void declare(Element element, ErrorCode errorCode) {
|
| String name = element.getName();
|
| Element existingLocalElement = scope.findLocalElement(name);
|
| - // Check for duplicate declaration in the enclosing scope.
|
| - if (existingLocalElement == null) {
|
| - Element existingElement = scope.findElement(scope.getLibrary(), name);
|
| - if (existingElement != null) {
|
| - SourceInfo nameSourceInfo = element.getNameLocation();
|
| - if (existingElement.getKind() == ElementKind.LIBRARY_PREFIX) {
|
| - onError(nameSourceInfo, ResolverErrorCode.CANNOT_HIDE_IMPORT_PREFIX, name);
|
| - }
|
| - }
|
| - }
|
| // Check for duplicate declaration in the same scope.
|
| if (existingLocalElement != null && errorCode != null) {
|
| SourceInfo nameSourceInfo = element.getNameLocation();
|
|
|