DonIsaac / zlint

A linter for the Zig programming language
MIT License
24 stars 1 forks source link

lint for discarding a value / error union #53

Open paperdave opened 2 weeks ago

paperdave commented 2 weeks ago
        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.