Skip to content

Commit f512453

Browse files
Correct an enhanced-enum test to alow setters named values (#1312)
1 parent 9a3da0a commit f512453

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

LanguageFeatures/Enhanced-Enum/grammar_A10_t04.dart

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
/// declaration.
1111
///
1212
/// @description Check that it's a compile-time error if the enum declaration
13-
/// contains a static member declaration with the name `values`
13+
/// contains a static setter with the name `values`, and its argument is not a
14+
/// supertype of the generated member `values`.
1415
/// @author [email protected]
1516
/// @issue 48387
1617
@@ -25,9 +26,6 @@ enum E1 {
2526
e3;
2627

2728
static void set values(int value) {}
28-
// ^^^^^^
29-
// [analyzer] unspecified
30-
// [cfe] unspecified
3129
}
3230

3331
enum E2<T> {
@@ -37,9 +35,6 @@ enum E2<T> {
3735

3836
const E2(Object val);
3937
static void set values(List<E2> value) {}
40-
// ^^^^^^
41-
// [analyzer] unspecified
42-
// [cfe] unspecified
4338
}
4439

4540
main() {

0 commit comments

Comments
 (0)