-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix #204 — calling methods on null receiver does not crash #482
Conversation
I thinking moving the macro in |
@albertnetymk DONE |
7e1fef4
to
d3e5f18
Compare
@albertnetymk bump! |
This PR is could be merged after #481. Some nitpicking:
|
d3e5f18
to
c90488d
Compare
@albertnetymk I hope I have addressed both points now. |
Looks great. Can be merged after #481 |
@albertnetymk FYI #481 is now merged. |
The two added tests fail for me, sth like:
|
And to be sure — did you update to support #481 first? |
Think so. Just need to pull |
I'll investigate. The programs are expected to fail but that should be counted as passing tests. |
c90488d
to
12a6f6e
Compare
I believe something may have changed in the mean time causing the error output of the failing tests to change, which made the .err file not match. Fixed now IMO. Please try again. |
@albertnetymk bump |
Sorry for the delay. Tried the HEAD~ with this PR, and it works OK. Merging now. |
This PR adds an additional branch before each method call or message send in Encore. Basically
is turned into (mock C code):
An error message looks like this
using
!
or.
appropriately.The reason to add the branch at the call-site rather than at the beginning of each method was because;
Note that the tests are written with PR 481 in mind. Without this PR, there is no support for testing this PR.