| Index: pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
|
| index f82568aa3e4960f7f05f9d9e5dc1b1c167b876dc..fee4b77d92539de4c368501b8077f3b1da952063 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
|
| @@ -829,7 +829,7 @@ abstract class IrBuilder {
|
| /// argument values are defined by [arguments].
|
| ir.Primitive buildConstructorInvocation(FunctionElement element,
|
| Selector selector,
|
| - InterfaceType type,
|
| + DartType type,
|
| List<ir.Primitive> arguments);
|
|
|
| /// Create a string concatenation of the [arguments].
|
| @@ -2169,7 +2169,7 @@ class DartIrBuilder extends IrBuilder {
|
| @override
|
| ir.Primitive buildConstructorInvocation(FunctionElement element,
|
| Selector selector,
|
| - InterfaceType type,
|
| + DartType type,
|
| List<ir.Primitive> arguments) {
|
| assert(isOpen);
|
| return _continueWithExpression(
|
| @@ -2458,14 +2458,15 @@ class JsIrBuilder extends IrBuilder {
|
| @override
|
| ir.Primitive buildConstructorInvocation(ConstructorElement element,
|
| Selector selector,
|
| - InterfaceType type,
|
| + DartType type,
|
| List<ir.Primitive> arguments) {
|
| assert(isOpen);
|
|
|
| ClassElement cls = element.enclosingClass;
|
| if (program.requiresRuntimeTypesFor(cls)) {
|
| + InterfaceType interface = type;
|
| Iterable<ir.Primitive> typeArguments =
|
| - type.typeArguments.map((DartType argument) {
|
| + interface.typeArguments.map((DartType argument) {
|
| return type.treatAsRaw
|
| ? buildNullLiteral()
|
| : buildTypeExpression(argument);
|
|
|