Index: dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
diff --git a/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
index 47b66c2032b57ae5296f627c7515181bb7b00571..1725ed2f5f92041cc1078eae550a12208fbf83e6 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
@@ -645,6 +645,10 @@ class CompileTimeConstantEvaluator extends Visitor { |
Send send = node.send; |
FunctionElement constructor = elements[send]; |
+ // TODO(ahe): This is nasty: we must eagerly analyze the |
+ // constructor to ensure the redirectionTarget has been computed |
+ // correctly. Find a way to avoid this. |
+ compiler.analyzeElement(constructor); |
constructor = constructor.redirectionTarget; |
ClassElement classElement = constructor.getEnclosingClass(); |
// The constructor must be an implementation to ensure that field |