Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
index 715b66ab57f99d332ed5e3176d341810c34f4ab1..8ce793da7245b04d2175342914f218643259237c 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
@@ -955,7 +955,7 @@ class Constantifier extends ir.ExpressionVisitor<ConstantExpression> { |
ConstantExpression visitStaticGet(ir.StaticGet node) { |
Element element = astAdapter.getMember(node.target); |
if (element.isField) { |
- return new VariableConstantExpression(element as MemberElement); |
+ return new VariableConstantExpression(element as VariableElement); |
} |
astAdapter.reporter.internalError( |
CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); |