Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
index b311280ac621afa4b9513aa17972f52cb865edeb..cb5d1f6cbb593e93fb5b58db5f277976fcc00765 100644 |
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart |
@@ -1578,6 +1578,17 @@ abstract class IrBuilderVisitor extends ast.Visitor<ir.Primitive> |
} |
@override |
+ ir.Primitive visitConstructorIncompatibleInvoke( |
+ ast.NewExpression node, |
+ Element constructor, |
+ DartType type, |
+ ast.NodeList arguments, |
+ CallStructure callStructure, _) { |
+ return buildStaticNoSuchMethod(elements.getSelector(node.send), |
+ translateDynamicArguments(arguments, callStructure)); |
+ } |
+ |
+ @override |
ir.Primitive errorNonConstantConstructorInvoke( |
ast.NewExpression node, |
Element element, |