Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leverage type information available in type switch. #161

Open
PurelyApplied opened this issue Oct 22, 2020 · 0 comments
Open

Leverage type information available in type switch. #161

PurelyApplied opened this issue Oct 22, 2020 · 0 comments

Comments

@PurelyApplied
Copy link
Collaborator

Within a type switch, non-default blocks have definite type information that remains obfuscated by interface. That information could be carried within that block and those dominated by that case entry for better reporting. This could possibly also be applied to type assertions, though nontrivial effort would be required to support typ, ok := foo.(bar) style type assertions.

A sample of (suppressed) test cases will be introduced by #149.

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

No branches or pull requests

1 participant