-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes 9880 #10228
Fixes 9880 #10228
Conversation
Can you add a test case please? Apart from that, I agree, the error should contain the bounds. |
Your contributions (I'm including here your comment on #10198, which led to a pull-request and a fix) are very appreciated and welcome. Keep them coming as you learn Nim. |
From my understanding (and I might be wrong — please correct me), (Don't correct anything until somebody confirms this :)) |
@narimiran A test case that triggers these exceptions should clear that question up. |
I'm on board with having tests, I just need some directions on how do I trigger these exceptions and also how to cache the mentioned exceptions. |
you should be able to raise the exception when you acces an arrar or a seq outside of its bounds. With try catch you can catch the exception and write an assert for the message. |
/cc @narimiran @krux02. I fixed the bounds, also I tried to add tests in the parts that I understood how to trigger the exceptions, for the others I |
@BontaVlad failure on appveyor is unrelated to your PR, it's caused by #10359 |
friendly ping @BontaVlad |
What do I need to do on this PR to get it merged? |
Don't use a generic compilerproc, follow what the compilerproc for the C backend does. |
Since #10610 was merged, can I close this PR? |
@BontaVlad yes, I don't think there's any remaining items left out; thanks again! |
Fixes #9880
I'm still learning nim, of course this PR needs adult supervision.