Closed pelotom closed 8 years ago
Yes. The current error messages are a bit weird. Throwing when too many arguments is given is a great idea.
I've left a single nitpicking comment.
Thank you for this PR! Sorry for the delayed merge. I didn't realise that you had committed another change.
Tweak the wording of the error message when giving an argument of the wrong type to a constructor... currently if you do something like
you'll get this oddly-worded error:
With this change the message becomes
Give a special error message for too many arguments to a constructor:
will throw