Index: lib/src/compiler/side_effect_analysis.dart |
diff --git a/lib/src/compiler/side_effect_analysis.dart b/lib/src/compiler/side_effect_analysis.dart |
index da5de6bf00f5b91042c56c08585d5932e8a44584..b1f9e4a4df5bfc2f37f759b4fb0226e8154735a0 100644 |
--- a/lib/src/compiler/side_effect_analysis.dart |
+++ b/lib/src/compiler/side_effect_analysis.dart |
@@ -38,7 +38,7 @@ bool isStateless(FunctionBody function, Expression node, [AstNode context]) { |
if (node is Identifier) { |
var e = node.staticElement; |
if (e is PropertyAccessorElement) { |
- e = e.variable; |
+ e = (e as PropertyAccessorElement).variable; |
} |
if (e is VariableElement && !e.isSynthetic) { |
if (e.isFinal) return true; |