Skip to content

Commit

Permalink
Turn the DOWN_CAST_COMPOSITE strong mode error into a hint, which will
Browse files Browse the repository at this point in the history
hide it unless you use an analysis options file to promote it to a warning
or an error.

R=vsm@google.com
BUG=

Review-Url: https://codereview.chromium.org/2734343002 .
  • Loading branch information
Kasper Lund committed Mar 8, 2017
1 parent 67b7952 commit fa2a3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analyzer/lib/src/error/codes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4733,7 +4733,7 @@ class StrongModeCode extends ErrorCode {
static const String _inferredTypeMessage = "'{0}' has inferred type '{1}'.";

static const StrongModeCode DOWN_CAST_COMPOSITE = const StrongModeCode(
ErrorType.STATIC_WARNING,
ErrorType.HINT,
'DOWN_CAST_COMPOSITE',
_implicitCastMessage,
_implicitCastCorrection);
Expand Down

0 comments on commit fa2a3a1

Please sign in to comment.