Better error reporting for map keys. #5704
nevertrimnuts
started this conversation in
Ideas/Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Given this code:
The error message is
In this example, it is trivial to figure out why you can't use
Keyas a map key, but in a more complex codebase with nested struct definitions, it becomes more difficult.It would be nice if it said something like
Beta Was this translation helpful? Give feedback.
All reactions