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

lint for discarding a value / error union #53

Open
paperclover opened this issue Nov 8, 2024 · 0 comments
Open

lint for discarding a value / error union #53

paperclover opened this issue Nov 8, 2024 · 0 comments
Labels
A-linter Area - linter and lint rules C-enhancement Category - New feature or request

Comments

@paperclover
Copy link

        path_map.route_types.append(allocator, .{
            ...
        });

If the linter can know @TypeOf(path_map.route_types.append) to be a function that returns a non-void value (in my case an error union), it should immediately that this usage (where the result is discarded) will always be a compile error.

@DonIsaac DonIsaac added C-enhancement Category - New feature or request A-linter Area - linter and lint rules labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - linter and lint rules C-enhancement Category - New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants