ITADN

'break' in switch() case flags later cases as "unreachable"

#3023OpenMichaelChirico 创建于 2026-03-09
false-positive
M
MichaelChiricocommented
Related: currently this is flagged as a lint: ```r repeat { switch(x, a = break, b = "d" ) } ``` ``` <text>:4:14: warning: [unreachable_code_linter] Remove code and comments coming after `break`. a = break, ^ ```
0 条评论