Closed perimosocordiae closed 2 years ago
This bug was introduced somewhat intentionally as a short term solution. In order to make diagnostics show the best name for a type based on context near the error (see #57), we need to pass a AST expressions in to the function generating the diagnostic. This particular function doesn't have easy access, so instead, to reduce the size and scope of the commit, I temporarily made the diagnostic worse.
This one is easier to demo than describe:
Output: