| Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| index a317c09bab65e8b2c7f66904583b4bb0eb795938..8da6d96c04c29ba210be4828b4d478c051317405 100644
|
| --- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| +++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| @@ -1158,7 +1158,7 @@ public class TypeAnalyzer implements DartCompilationPhase {
|
| if (returnType != null && returnType.getType() != voidType) {
|
| typeError(returnType, TypeErrorCode.SETTER_RETURN_TYPE, methodElement.getName());
|
| }
|
| - if (currentClass != null && methodElement.getParameters().size() > 0) {
|
| + if (methodElement.getParameters().size() > 0) {
|
| Element parameterElement = methodElement.getParameters().get(0);
|
| Type setterType = parameterElement.getType();
|
| MethodElement getterElement = Elements.lookupFieldElementGetter(currentClass.getElement(),
|
|
|