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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ClassScope.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: 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/ClassScope.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ClassScope.java b/compiler/java/com/google/dart/compiler/resolver/ClassScope.java
index cba91e156ffed5e154b25c5edaea2de403a51a4e..2bf6ad4a63d7ecfb760054126c3a8a2051d83f56 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ClassScope.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ClassScope.java
@@ -34,6 +34,9 @@ class ClassScope extends Scope {
ClassScope scope = new ClassScope(superclass.getElement(),
new Scope("library", (LibraryElement) enclosing));
element = scope.findElement(inLibrary, name);
+ if (element instanceof TypeVariableElement) {
zundel 2011/12/19 16:29:14 just a thought: you could merge these two if block
scheglov 2011/12/19 19:10:38 Done.
+ return null;
+ }
if (element != null) {
return element;
}

Powered by Google App Engine
This is Rietveld 408576698