Skip to content

Commit 8114ecb

Browse files
committed
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>
1 parent 85edb76 commit 8114ecb

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

pkg/analyzer/test/generated/checked_mode_compile_time_error_code_test.dart

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -421,16 +421,10 @@ var v = const C<String>();
421421
await computeAnalysisResult(source);
422422
assertErrors(
423423
source,
424-
useCFE
425-
? [
426-
CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE,
427-
StaticTypeWarningCode.INVALID_ASSIGNMENT
428-
]
429-
: [
430-
CheckedModeCompileTimeErrorCode
431-
.CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH,
432-
StaticTypeWarningCode.INVALID_ASSIGNMENT
433-
],
424+
[
425+
CheckedModeCompileTimeErrorCode.CONST_CONSTRUCTOR_FIELD_TYPE_MISMATCH,
426+
StaticTypeWarningCode.INVALID_ASSIGNMENT
427+
],
434428
);
435429
verify([source]);
436430
}
@@ -462,12 +456,7 @@ var v = const C<int>();
462456
await computeAnalysisResult(source);
463457
assertErrors(
464458
source,
465-
useCFE
466-
? [
467-
CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE,
468-
StaticTypeWarningCode.INVALID_ASSIGNMENT
469-
]
470-
: [StaticTypeWarningCode.INVALID_ASSIGNMENT],
459+
[StaticTypeWarningCode.INVALID_ASSIGNMENT],
471460
);
472461
verify([source]);
473462
}

0 commit comments

Comments
 (0)