| Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/resolution/members.dart (revision 27593)
|
| +++ sdk/lib/_internal/compiler/implementation/resolution/members.dart (working copy)
|
| @@ -2653,7 +2653,8 @@
|
| FunctionType targetType = redirectionTarget.computeType(compiler)
|
| .subst(type.typeArguments, targetClass.typeVariables);
|
| FunctionType constructorType = constructor.computeType(compiler);
|
| - if (!compiler.types.isSubtype(targetType, constructorType)) {
|
| + bool isSubtype = compiler.types.isSubtype(targetType, constructorType);
|
| + if (!isSubtype) {
|
| warning(node, MessageKind.NOT_ASSIGNABLE.warning,
|
| {'fromType': targetType, 'toType': constructorType});
|
| }
|
| @@ -2663,6 +2664,7 @@
|
| FunctionSignature constructorSignature =
|
| constructor.computeSignature(compiler);
|
| if (!targetSignature.isCompatibleWith(constructorSignature)) {
|
| + assert(!isSubtype);
|
| compiler.backend.registerThrowNoSuchMethod(mapping);
|
| }
|
|
|
|
|