Skip to content

Commit

Permalink
Fix tests after fixing constant fields with CFE.
Browse files Browse the repository at this point in the history
TBR

R=brianwilkerson@google.com

Change-Id: I121694e2f7f865b521110bf41875f4557e456e33
Reviewed-on: https://dart-review.googlesource.com/68420
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
  • Loading branch information
scheglov committed Aug 3, 2018
1 parent 85edb76 commit 8114ecb
Showing 1 changed file with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,16 +421,10 @@ var v = const C<String>();
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]);
}
Expand Down Expand Up @@ -462,12 +456,7 @@ var v = const C<int>();
await computeAnalysisResult(source);
assertErrors(
source,
useCFE
? [
CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE,
StaticTypeWarningCode.INVALID_ASSIGNMENT
]
: [StaticTypeWarningCode.INVALID_ASSIGNMENT],
[StaticTypeWarningCode.INVALID_ASSIGNMENT],
);
verify([source]);
}
Expand Down

0 comments on commit 8114ecb

Please sign in to comment.