Index: pkg/front_end/lib/src/fasta/kernel/kernel_target.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart |
index 4f8b29fdd76eccac3c769eeeac63073cfac7899c..dfacddc4f451a70999418073ef8c0104d1a4ae31 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart |
@@ -567,6 +567,16 @@ class KernelTarget extends TargetImplementation { |
superTarget ??= defaultSuperConstructor(cls); |
Initializer initializer; |
if (superTarget == null) { |
+ Uri uri = constructor.enclosingClass.fileUri == null |
+ ? null |
+ : Uri.parse(constructor.enclosingClass.fileUri); |
+ InputError error = new InputError( |
+ uri, |
+ constructor.fileOffset, |
+ "${cls.superclass.name} has no constructor that takes no" |
+ " arguments."); |
+ print(error.format()); |
+ errors.add(error); |
initializer = new InvalidInitializer(); |
} else { |
initializer = |