Skip to content

Commit 7719298

Browse files
stereotype441commit-bot@chromium.org
authored andcommitted
Flow analysis: fix incorrectly written unit test.
Change-Id: Iba5fcbb6ecd6f707ef2b20b0ec653fda7c577924 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/109881 Reviewed-by: Johnni Winther <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent 073d521 commit 7719298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer/test/src/dart/resolution/flow_analysis_unit_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ main() {
5555
if (expectedPromotedType == null) {
5656
expect(h.flow.promotedType(x), isNull);
5757
} else {
58-
expect(h.flow.promotedType(x).type, 'int');
58+
expect(h.flow.promotedType(x).type, expectedPromotedType);
5959
}
6060
h.flow.ifStatement_elseBegin();
6161
expect(h.flow.promotedType(x), isNull);

0 commit comments

Comments
 (0)