| Index: pkg/analyzer/lib/src/task/dart.dart
|
| diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
|
| index 0e9488321db3335eb5d3e7e04a369193d05fc9e0..3ba3b1a050dbcebae3758d4dcb08fff8ca22a9c8 100644
|
| --- a/pkg/analyzer/lib/src/task/dart.dart
|
| +++ b/pkg/analyzer/lib/src/task/dart.dart
|
| @@ -3215,14 +3215,7 @@ class InferStaticVariableTypeTask extends InferStaticVariableTask {
|
| if (newType == null || newType.isBottom) {
|
| newType = typeProvider.dynamicType;
|
| }
|
| - variable.type = newType;
|
| - (variable.initializer as ExecutableElementImpl).returnType = newType;
|
| - if (variable is PropertyInducingElementImpl) {
|
| - setReturnType(variable.getter, newType);
|
| - if (!variable.isFinal && !variable.isConst) {
|
| - setParameterType(variable.setter, newType);
|
| - }
|
| - }
|
| + setFieldType(variable, newType);
|
| } else {
|
| // TODO(brianwilkerson) For now we simply don't infer any type for
|
| // variables or fields involved in a cycle. We could try to be smarter
|
|
|