[PrimaryConstructors] Update analyzer error expectations
Change-Id: I2a37ae333deb3c9b8142fd7683af9a05d908d2d2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/478364 Reviewed-by: Erik Ernst <eernst@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
This commit is contained in:
committed by
Commit Queue
parent
239b89a8f4
commit
48b4989bfa
@@ -8,17 +8,19 @@
|
||||
|
||||
enum E1(var int x) {
|
||||
// ^
|
||||
// [analyzer] unspecified
|
||||
// [cfe] Enum constructors are constant so all fields must be final.
|
||||
// ^
|
||||
// [analyzer] COMPILE_TIME_ERROR.non_final_field_in_enum
|
||||
|
||||
a(0)
|
||||
}
|
||||
|
||||
enum E2() {
|
||||
// ^
|
||||
// [analyzer] unspecified
|
||||
// [cfe] Enum constructors are constant so all fields must be final.
|
||||
a;
|
||||
|
||||
int x = 0;
|
||||
// ^
|
||||
// [analyzer] COMPILE_TIME_ERROR.non_final_field_in_enum
|
||||
}
|
||||
Reference in New Issue
Block a user