diff --git a/tests/language/primary_constructors/header/enum_declaring_parameter_error_test.dart b/tests/language/primary_constructors/header/enum_declaring_parameter_error_test.dart index 9a0011cb687..e4d8a8902d8 100644 --- a/tests/language/primary_constructors/header/enum_declaring_parameter_error_test.dart +++ b/tests/language/primary_constructors/header/enum_declaring_parameter_error_test.dart @@ -8,17 +8,19 @@ enum E1(var int x) { // ^ -// [analyzer] unspecified // [cfe] Enum constructors are constant so all fields must be final. +// ^ +// [analyzer] COMPILE_TIME_ERROR.non_final_field_in_enum a(0) } enum E2() { // ^ -// [analyzer] unspecified // [cfe] Enum constructors are constant so all fields must be final. a; int x = 0; + // ^ + // [analyzer] COMPILE_TIME_ERROR.non_final_field_in_enum } \ No newline at end of file