Skip to content

Commit

Permalink
#1258. Enhanced enums test fixed, issue numbers added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey G. Grekhov committed Feb 9, 2022
1 parent d260a8e commit d34fc84
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ enum E2 {
e2(0);

const E2(int i);
final List<E2> values = [];
final List<E2> values = const [];
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ enum E2 {
e2(0);

const E2(int i);
List<E2> values() => [];
List<E2> values() => const [];
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ enum E2 {
e2(0);

const E2(int i);
List<E2> get values => [];
List<E2> get values => const [];
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ abstract class I1 {
}

class I2 {
final List values = [];
final List values = const [];
}

enum E1 implements I1 {
Expand All @@ -78,13 +78,19 @@ enum E2 implements I2 {
}

enum E3 implements I1 {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
e1(42),
e2(0);

const E3(int i);
}

enum E4 implements I2 {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
e1(42),
e2(0);

Expand Down
6 changes: 6 additions & 0 deletions LanguageFeatures/Enhanced-Enum/implementing_enum_A03_t10.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,19 @@ enum E2 implements I2 {
}

enum E3 implements I1 {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
e1(42),
e2(0);

const E3(int i);
}

enum E4 implements I2 {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
e1(42),
e2(0);

Expand Down
6 changes: 6 additions & 0 deletions LanguageFeatures/Enhanced-Enum/implementing_enum_A03_t11.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,19 @@ enum E2 implements I2 {
}

enum E3 implements I1 {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
e1(42),
e2(0);

const E3(int i);
}

enum E4 implements I2 {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
e1(42),
e2(0);

Expand Down
6 changes: 6 additions & 0 deletions LanguageFeatures/Enhanced-Enum/implementing_enum_A03_t12.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,19 @@ enum E2 implements I2 {
}

enum E3 implements I1 {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
e1(42),
e2(0);

const E3(int i);
}

enum E4 implements I2 {
// ^^
// [analyzer] unspecified
// [cfe] unspecified
e1(42),
e2(0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/// Enum as a superinterface, and it declares a non-abstract instance member
/// named `index`.
/// @author [email protected]
/// @issue 48353
// SharedOptions=--enable-experiment=enhanced-enums

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/// Enum as a superinterface, and it declares a non-abstract instance member
/// named `index`.
/// @author [email protected]
/// @issue 48353
// SharedOptions=--enable-experiment=enhanced-enums

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/// Enum as a superinterface, and it declares a non-abstract instance member
/// named `index`.
/// @author [email protected]
/// @issue 48353
// SharedOptions=--enable-experiment=enhanced-enums

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/// Enum as a superinterface, and it declares a non-abstract instance member
/// named `index`.
/// @author [email protected]
/// @issue 48353
// SharedOptions=--enable-experiment=enhanced-enums

Expand All @@ -68,7 +69,7 @@ enum E2 {
e2(0);

const E2(int i);
final List<E2> index = [];
final List<E2> index = const [];
// ^^^^^
// [analyzer] unspecified
// [cfe] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ enum E2 {
e2(0);

const E2(int i);
List<E2> index() => [];
List<E2> index() => const [];
// ^^^^^
// [analyzer] unspecified
// [cfe] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/// Enum as a superinterface, and it declares a non-abstract instance member
/// named `index`.
/// @author [email protected]
/// @issue 48353
// SharedOptions=--enable-experiment=enhanced-enums

Expand All @@ -68,7 +69,7 @@ enum E2 {
e2(0);

const E2(int i);
List<E2> get index => [];
List<E2> get index => const [];
// ^^^^^
// [analyzer] unspecified
// [cfe] unspecified
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/// Enum as a superinterface, and it declares a non-abstract instance member
/// named `index`.
/// @author [email protected]
/// @issue 48353
// SharedOptions=--enable-experiment=enhanced-enums

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/// Enum as a superinterface, and it declares a non-abstract instance member
/// named `index`.
/// @author [email protected]
/// @issue 48353
// SharedOptions=--enable-experiment=enhanced-enums

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/// Enum as a superinterface, and it declares a non-abstract instance member
/// named `index`.
/// @author [email protected]
/// @issue 48353
// SharedOptions=--enable-experiment=enhanced-enums

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
/// Enum as a superinterface, and it declares a non-abstract instance member
/// named `index`.
/// @author [email protected]
/// @issue 48353
// SharedOptions=--enable-experiment=enhanced-enums

Expand Down

0 comments on commit d34fc84

Please sign in to comment.