Skip to content

Commit feb486f

Browse files
keertipCommit Queue
authored and
Commit Queue
committed
Update CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS to needsFix.
Change-Id: Id2616570f7b282561d1975537fd6e59470733c0c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/329783 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Keerti Parthasarathy <[email protected]>
1 parent 9ed15c1 commit feb486f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/analysis_server/lib/src/services/correction/error_fix_status.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@ CompileTimeErrorCode.CASE_BLOCK_NOT_TERMINATED:
278278
The typical fix, when someone thought a termination was not needed, is to
279279
add a break.
280280
CompileTimeErrorCode.CASE_EXPRESSION_TYPE_IMPLEMENTS_EQUALS:
281-
status: noFix
281+
status: needsFix
282+
notes: |-
283+
The fix could be to change the switch expression to an if statement.
282284
CompileTimeErrorCode.CASE_EXPRESSION_TYPE_IS_NOT_SWITCH_EXPRESSION_SUBTYPE:
283285
status: noFix
284286
CompileTimeErrorCode.CAST_TO_NON_TYPE:

0 commit comments

Comments
 (0)