x/tools/gopls: break
in type switch highlights outer for
loop
#65752
Labels
Milestone
break
in type switch highlights outer for
loop
#65752
gopls version
golang.org/x/tools/gopls@(devel)
What did you do?
Input file:
CLI invocation:
What did you see happen?
bar.go:5:2-5 corresponds to the
for
keyword.What did you expect to see?
The
break
statement breaks from theswitch
statement, not thefor
loop. Gopls does handle this correctly for value switches, but not for type switches.Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: