Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Confusing binding error #1151

Open
paweljasinski opened this issue Dec 26, 2014 · 1 comment
Open

Confusing binding error #1151

paweljasinski opened this issue Dec 26, 2014 · 1 comment

Comments

@paweljasinski
Copy link
Contributor

complete example available at: http://stackoverflow.com/a/27657216/1761490
When last argument to OpenNetPort call is 12345 instead of PortHandle, the error message is:
TypeError: expected Byte, got StrongBox[Byte]
When second last argument to OpenNetPort call is 22 insted of comAddr, the error message is:
TypeError: expected int, got StrongBox[int]
The exception is thrown from https://github.com/IronLanguages/main/blob/ipy-2.7-maint/Runtime/Microsoft.Dynamic/Actions/Calls/OverloadResolver.cs#L1062
It appears, target.callFailures contains multiple entries, but only one is reported.

@paweljasinski
Copy link
Contributor Author

I think reporting a value of an argument is a bad idea, but I would be extremely happy with an index of a failed argument.
For now, the experimental changes can be seen here: https://github.com/paweljasinski/IronLanguages/tree/gh1151

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants