| Index: compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java
|
| diff --git a/compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java b/compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java
|
| index 7521106d679ef9a04f2e2e8d21974ca3dd5a3598..54c9bcda61563b127b6b7f385220d20026ee4eda 100644
|
| --- a/compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java
|
| +++ b/compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java
|
| @@ -69,7 +69,8 @@ class TypeVariableElementImplementation extends AbstractNodeElement implements T
|
| // no explicit bound, try to get Object
|
| if (bound == null) {
|
| if (owner instanceof ClassElement) {
|
| - bound = ((ClassElement) owner).getLibrary().lookupLocalElement("Object").getType();
|
| + Scope libraryScope = ((ClassElement) owner).getLibrary().getScope();
|
| + bound = libraryScope.findElement(null, "Object").getType();
|
| }
|
| }
|
| return bound;
|
|
|