We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a3da0a commit f512453Copy full SHA for f512453
LanguageFeatures/Enhanced-Enum/grammar_A10_t04.dart
@@ -10,7 +10,8 @@
10
/// declaration.
11
///
12
/// @description Check that it's a compile-time error if the enum declaration
13
-/// contains a static member declaration with the name `values`
+/// contains a static setter with the name `values`, and its argument is not a
14
+/// supertype of the generated member `values`.
15
/// @author [email protected]
16
/// @issue 48387
17
@@ -25,9 +26,6 @@ enum E1 {
25
26
e3;
27
28
static void set values(int value) {}
-// ^^^^^^
29
-// [analyzer] unspecified
30
-// [cfe] unspecified
31
}
32
33
enum E2<T> {
@@ -37,9 +35,6 @@ enum E2<T> {
37
35
38
36
const E2(Object val);
39
static void set values(List<E2> value) {}
40
41
42
43
44
45
main() {
0 commit comments