Fix tests after fixing constant fields with CFE.
TBR
R=brianwilkerson@google.com
Change-Id: I121694e2f7f865b521110bf41875f4557e456e33
Reviewed-on: https://dart-review.googlesource.com/68420
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
diff --git a/pkg/analyzer/test/generated/checked_mode_compile_time_error_code_test.dart b/pkg/analyzer/test/generated/checked_mode_compile_time_error_code_test.dart
index d74dcfa..0a5de28 100644
--- a/pkg/analyzer/test/generated/checked_mode_compile_time_error_code_test.dart
+++ b/pkg/analyzer/test/generated/checked_mode_compile_time_error_code_test.dart
@@ -421,16 +421,10 @@
await computeAnalysisResult(source);
assertErrors(
source,
- useCFE
- ? [
- CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE,
- StaticTypeWarningCode.INVALID_ASSIGNMENT
- ]
- : [
- CheckedModeCompileTimeErrorCode
- .CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH,
- StaticTypeWarningCode.INVALID_ASSIGNMENT
- ],
+ [
+ CheckedModeCompileTimeErrorCode.CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH,
+ StaticTypeWarningCode.INVALID_ASSIGNMENT
+ ],
);
verify([source]);
}
@@ -462,12 +456,7 @@
await computeAnalysisResult(source);
assertErrors(
source,
- useCFE
- ? [
- CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE,
- StaticTypeWarningCode.INVALID_ASSIGNMENT
- ]
- : [StaticTypeWarningCode.INVALID_ASSIGNMENT],
+ [StaticTypeWarningCode.INVALID_ASSIGNMENT],
);
verify([source]);
}