-
Notifications
You must be signed in to change notification settings - Fork 17
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
No variable or method x
for y, thrown after a potentially raising method is called
#155
Comments
If you remove the |
I misread this issue the first few times and assumed there was a The fact that there isn't a |
Messed around with it a little bit and it looks like this is actually an issue with
Removing the explicit |
I think explicit returns/breaks might also have issues with restoring the correct value of |
…O#gets` issue. The explicit return in `IO#gets` caused issues with the value of `self` (see myst-lang#155), so `raise/rescue` is used as a temporary workaround. Also, the specs for File are a bit light, because there currently isn't a great way of mocking FileDescriptor input, nor accessing the Interpreter's `fd_pool` to check for opening/closing of files.
Some more testing makes this look like an issue with |
This is as minimal as I could get it:
This is expected to print
"111116\n"
, but instead it raises the following error:This is where the error occurs:
The text was updated successfully, but these errors were encountered: