8000 quickfix: avoid untyped nil switch tags by tridev-tej · Pull Request #1848 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

quickfix: avoid untyped nil switch tags - #1848

Open
tridev-tej wants to merge 1 commit into
dominikh:masterfrom
tridev-tej:tejesh/qf1003-untyped-nil
Open

tridev-tej wants to merge 1 commit into
dominikh:masterfrom
tridev-tej:tejesh/qf1003-untyped-nil

Conversation

@tridev-tej
Copy link
Copy Markdown

QF1003 suggested an invalid switch when nil was the common operand

  • skip untyped nil tags
  • retain typed and shadowed nil conversions
  • cover suggested edits and compile the expected output

Fixes #1842

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QF1003: suggested fix generates an invalid switch nil statement

1 participant

0