Skip to content

Prioritize constrait errors over generic errors

Following up from this discussion

I think the underlying cause of this is that when type inference finds out = a[2:0] it'll infer out :: [T; -2] before checking constraints. In general, I think we may want to try to evaluate constraints and reporting those errors before reporting errors from failing equations.