| Index: pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
|
| diff --git a/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart b/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
|
| index acb23bf4450d6b7e73450431b18f4396f390b065..1c92ff5eeb37ce8a02944a23a3696e527dddb585 100644
|
| --- a/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
|
| +++ b/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
|
| @@ -372,6 +372,7 @@ class StatementRewriter extends Transformer implements Pass {
|
| exp is CreateInvocationMirror ||
|
| exp is CreateInstance ||
|
| exp is CreateBox ||
|
| + exp is TypeExpression ||
|
| exp is GetStatic && exp.element.isFunction ||
|
| exp is Interceptor ||
|
| exp is ApplyBuiltinOperator ||
|
| @@ -822,6 +823,9 @@ class StatementRewriter extends Transformer implements Pass {
|
| }
|
|
|
| Expression visitCreateInstance(CreateInstance node) {
|
| + if (node.typeInformation != null) {
|
| + node.typeInformation = visitExpression(node.typeInformation);
|
| + }
|
| _rewriteList(node.arguments);
|
| return node;
|
| }
|
|
|