Chromium Code Reviews| 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 f1396caa299e16ae728946d691b1ed38ce6dca30..8ce793da7245b04d2175342914f218643259237c 100644 |
| --- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
| +++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
| @@ -27,7 +27,6 @@ import '../universe/call_structure.dart'; |
| import '../universe/selector.dart'; |
| import '../universe/side_effects.dart'; |
| import '../world.dart'; |
| -import 'jump_handler.dart' show SwitchCaseJumpHandler; |
| import 'locals_handler.dart'; |
| import 'types.dart'; |
| @@ -956,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); |
| + return new VariableConstantExpression(element as VariableElement); |
|
Siggi Cherem (dart-lang)
2017/01/20 18:12:32
To continue following the general dart2js style he
ahe
2017/01/23 10:58:36
I think there's a bug in the analyzer. It's as if
|
| } |
| astAdapter.reporter.internalError( |
| CURRENT_ELEMENT_SPANNABLE, "Unexpected constant target: $element."); |