| Index: lib/src/codegen/side_effect_analysis.dart
|
| diff --git a/lib/src/codegen/side_effect_analysis.dart b/lib/src/codegen/side_effect_analysis.dart
|
| index 6ae46d83f4fcf0edd531288ecfa359321036ccfa..df355d8bc4ed6559f7cd047907428b05286dbba3 100644
|
| --- a/lib/src/codegen/side_effect_analysis.dart
|
| +++ b/lib/src/codegen/side_effect_analysis.dart
|
| @@ -36,7 +36,8 @@ bool isStateless(Expression node, [AstNode context]) {
|
| if (node is ThisExpression || node is SuperExpression) return true;
|
| if (node is SimpleIdentifier) {
|
| var e = node.staticElement;
|
| - if (e is PropertyAccessorElement) e = e.variable;
|
| + if (e is PropertyAccessorElement) e =
|
| + (e as PropertyAccessorElement).variable;
|
| if (e is VariableElement && !e.isSynthetic) {
|
| if (e.isFinal) return true;
|
| if (e is LocalVariableElement || e is ParameterElement) {
|
|
|