Incorrectly generates "Code is unreachable" warning, if match is missing a default case
Given the following code:
func reach_for_the_sky(value: int) -> int:
match value:
1:
return 64
2:
return 28
3:
return 749
return 42
The plugin generates an warning that on the final line (return 42
) that:
Code is unreachable
I can fix this by adding a default (_) case to the match (which resolves the warning), however the above code is valid and shouldn't generate the unreachable warning.
Plugin Version: 2.4.11
Edited by David Trott