| Index: pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
|
| index 515c1ed73b227e25cfc03b638707a5e70d77c5b1..178bb1b9bb8e0bcf342b7c1e6c653fe7cec7128e 100644
|
| --- a/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
|
| +++ b/pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart
|
| @@ -28,6 +28,8 @@ import 'package:kernel/ast.dart'
|
| ThisExpression,
|
| VariableGet;
|
|
|
| +import '../fasta_codes.dart' show messageNoUnnamedConstructorInObject;
|
| +
|
| import '../modifier.dart' show constMask, finalMask, staticMask;
|
|
|
| import '../names.dart' show indexGetName;
|
| @@ -259,8 +261,7 @@ class KernelEnumBuilder extends SourceClassBuilder
|
| // unnamed constructor requires no arguments. But that information isn't
|
| // always available at this point, and it's not really a situation that
|
| // can happen unless you start modifying the SDK sources.
|
| - deprecated_addCompileTimeError(
|
| - -1, "'Object' has no unnamed constructor.");
|
| + addCompileTimeError(messageNoUnnamedConstructorInObject, -1);
|
| } else {
|
| constructor.initializers.add(
|
| new SuperInitializer(superConstructor.target, new Arguments.empty())
|
|
|