Skip to content

Commit 2c68a8e

Browse files
author
sgrekhov
committed
Fixes #1284. Test changed to allow ; after identifier list
1 parent 069c50c commit 2c68a8e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

LanguageFeatures/Enhanced-Enum/grammar_A01_t04.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/// identifier list may have a trailing comma (like now).
1818
///
1919
/// @description Check that if there is a ; after the identifier list and there
20-
/// is no any class member then it is a compile time error
20+
/// is no any class member then it is not an error
2121
/// @author [email protected]
2222
2323
// SharedOptions=--enable-experiment=enhanced-enums
@@ -27,18 +27,12 @@ enum Time1<T> {
2727
day<String>(),
2828
week<bool>();
2929
}
30-
//^
31-
// [analyzer] unspecified
32-
// [cfe] unspecified
3330

3431
enum Time2<T> {
3532
hour<int>(),
3633
day<String>(),
3734
week<bool>(),;
3835
}
39-
//^
40-
// [analyzer] unspecified
41-
// [cfe] unspecified
4236

4337
main() {
4438
Time1.week;

0 commit comments

Comments
 (0)