Skip to content

Correct an enhanced-enum test to allow setters named values #1312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions LanguageFeatures/Enhanced-Enum/grammar_A10_t04.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
/// declaration.
///
/// @description Check that it's a compile-time error if the enum declaration
/// contains a static member declaration with the name `values`
/// contains a static setter with the name `values`, and its argument is not a
/// supertype of the generated member `values`.
/// @author [email protected]
/// @issue 48387

Expand All @@ -25,9 +26,6 @@ enum E1 {
e3;

static void set values(int value) {}
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
}

enum E2<T> {
Expand All @@ -37,9 +35,6 @@ enum E2<T> {

const E2(Object val);
static void set values(List<E2> value) {}
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
}

main() {
Expand Down