Skip to content

Commit 8922198

Browse files
committed
Treat DownCastComposite as a StaticWarning, not a StaticTypeWarning.
This works around the fact that strong mode promotes all StaticTypeWarnings to errors, but we don't want to do that for this strong-mode-specific warning. See: #26026 [email protected], [email protected] Review URL: https://codereview.chromium.org/1833553002 .
1 parent afeae0e commit 8922198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/analyzer/lib/src/task/strong/info.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class DownCastComposite extends DownCast {
170170
@override
171171
String get name => 'STRONG_MODE_DOWN_CAST_COMPOSITE';
172172

173-
toErrorCode() => new StaticTypeWarningCode(name, message);
173+
toErrorCode() => new StaticWarningCode(name, message);
174174
}
175175

176176
/// A down cast to a non-ground type. These behave differently from standard

0 commit comments

Comments
 (0)