| Index: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| index b4048bdb8d3444d0286096947a2b3b11c9ad54e8..39dd8684cf042452effc1f4d738fa24a7a111709 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| @@ -1762,13 +1762,21 @@ class SsaBuilder extends ResolvedVisitor {
|
| }
|
|
|
| Element target = constructor.definingConstructor.implementation;
|
| - Selector.addForwardingElementArgumentsToList(
|
| + bool match = Selector.addForwardingElementArgumentsToList(
|
| constructor,
|
| arguments,
|
| target,
|
| compileArgument,
|
| handleConstantForOptionalParameter,
|
| compiler);
|
| + if (!match) {
|
| + // If this fails, the selector we constructed for the call to a
|
| + // forwarding constructor in a mixin application did not match the
|
| + // constructor (which, for example, may happen when the libraries are
|
| + // not compatible for private names, see issue 20394).
|
| + compiler.internalError(constructor,
|
| + 'forwarding constructor call does not match');
|
| + }
|
| inlineSuperOrRedirect(
|
| target,
|
| arguments,
|
|
|