-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interpreter: Correct return value state handling
In cases where a script module function returns void, while also calling an internal function which does not return void, the return type of the internal function ends up as the expected return type of the outer void-returning function, yielding type failure. Admittedly this is a very contrived example and only likely to show up when prototyping new script modules but it was nonetheless causing me difficulties in exactly that situation so I have fixed it and extended the script_module test to cover this case.
- Loading branch information
1 parent
046d9be
commit 25f8e61
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters