Misleading "unbound function" error message
I was recently caught by the error message:
unbound function or predicate symbol 'UInt64.of_int'
It took me a second to realize that the reason was being raised was that of_int
is a val
and not a function
or predicate
. I feel like the message could be improved when a program symbol with the same name appears, something like:
unbound function or predicate symbol 'UInt64.of_int', but a program symbol with the same name was found
Even this marginal improvement would make the error much more clear (imo).